From 1a5ea930ab73e2b727567026f6b990b1fc416c33 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Sun, 4 Feb 2024 23:41:16 -0300 Subject: [PATCH] Update fuzz.c for mg_commalist -> mg_span --- test/fuzz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fuzz.c b/test/fuzz.c index 5301c147..fe03f345 100644 --- a/test/fuzz.c +++ b/test/fuzz.c @@ -75,7 +75,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { mg_globmatch((char *) data, size, (char *) data, size); struct mg_str k, v, s = mg_str_n((char *) data, size); - while (mg_commalist(&s, &k, &v)) k.len = v.len = 0; + while (mg_span(s, &k, &v, ',')) k.len = v.len = 0; int n; mg_json_get(mg_str_n((char *) data, size), "$", &n);