mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
Update fuzz.c for mg_commalist -> mg_span
This commit is contained in:
parent
e4bfb2b5b0
commit
1a5ea930ab
@ -75,7 +75,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
mg_globmatch((char *) data, size, (char *) data, size);
|
mg_globmatch((char *) data, size, (char *) data, size);
|
||||||
|
|
||||||
struct mg_str k, v, s = mg_str_n((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;
|
int n;
|
||||||
mg_json_get(mg_str_n((char *) data, size), "$", &n);
|
mg_json_get(mg_str_n((char *) data, size), "$", &n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user