Skip to content

Commit

Permalink
Update fuzz.c for mg_commalist -> mg_span
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile authored Feb 5, 2024
1 parent e4bfb2b commit 1a5ea93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a5ea93

Please sign in to comment.