From 01ae80ecd170249591e4b3ac966520b08ffb7a95 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 22 Feb 2024 08:36:22 +0000 Subject: [PATCH] Fix fuzzer call for mg_span() --- test/fuzz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fuzz.c b/test/fuzz.c index fe03f345..91190c72 100644 --- a/test/fuzz.c +++ b/test/fuzz.c @@ -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);