summaryrefslogtreecommitdiffhomepage
path: root/fuzzing/nxt_http_h1p_fuzz.c
diff options
context:
space:
mode:
authorArjun <pkillarjun@protonmail.com>2024-07-10 10:35:36 +0530
committerAndrew Clayton <a.clayton@nginx.com>2024-07-15 14:37:46 +0100
commitfcbaf8f3162e8b589628a8bbe10690a9759f56bb (patch)
tree6a0b9ff9a3f9c3711a549b5a2a9e6cd921a1804d /fuzzing/nxt_http_h1p_fuzz.c
parent58fdff542b176dc7a78c96bff5c401bcda4723f6 (diff)
downloadunit-fcbaf8f3162e8b589628a8bbe10690a9759f56bb.tar.gz
unit-fcbaf8f3162e8b589628a8bbe10690a9759f56bb.tar.bz2
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 <pkillarjun@protonmail.com> [ Removed private links - Andrew ] Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'fuzzing/nxt_http_h1p_fuzz.c')
-rw-r--r--fuzzing/nxt_http_h1p_fuzz.c2
1 files changed, 2 insertions, 0 deletions
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: