From fcbaf8f3162e8b589628a8bbe10690a9759f56bb Mon Sep 17 00:00:00 2001 From: Arjun Date: Wed, 10 Jul 2024 10:35:36 +0530 Subject: fuzzing: fix harness bugs There are multiple false positive bugs in harness due to improper use of the internal API. Fixes: a93d878e ("fuzzing: add fuzzing targets") Signed-off-by: Arjun [ Removed private links - Andrew ] Signed-off-by: Andrew Clayton --- fuzzing/nxt_http_h1p_fuzz.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fuzzing/nxt_http_h1p_fuzz.c') diff --git a/fuzzing/nxt_http_h1p_fuzz.c b/fuzzing/nxt_http_h1p_fuzz.c index 471e87a4..a170463a 100644 --- a/fuzzing/nxt_http_h1p_fuzz.c +++ b/fuzzing/nxt_http_h1p_fuzz.c @@ -75,6 +75,8 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) goto failed; } + r_h1p->mem_pool = mp; + nxt_http_fields_process(rp.fields, &nxt_h1p_fields_hash, r_h1p); failed: -- cgit