Skip to content

Commit

Permalink
Fix fuzzer call for mg_span()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Feb 22, 2024
1 parent 52997c6 commit 01ae80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ 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_span(s, &k, &v, ',')) k.len = v.len = 0;
struct mg_str entry, s = mg_str_n((char *) data, size);
while (mg_span(s, &entry, &s, ',')) entry.len = 0;

int n;
mg_json_get(mg_str_n((char *) data, size), "$", &n);
Expand Down

0 comments on commit 01ae80e

Please sign in to comment.