From 983b8e8eee27788fb9e11cfa8cbc8539eb9c4ef4 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 1 Dec 2023 07:01:49 +0100 Subject: STUN: parsing of DATA attribute (#2179) --- fuzz/fuzz_is_stun.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fuzz/fuzz_is_stun.c') diff --git a/fuzz/fuzz_is_stun.c b/fuzz/fuzz_is_stun.c index 1b1eb2639..dc1c98f07 100644 --- a/fuzz/fuzz_is_stun.c +++ b/fuzz/fuzz_is_stun.c @@ -4,6 +4,7 @@ static struct ndpi_detection_module_struct *ndpi_struct = NULL; static struct ndpi_flow_struct ndpi_flow; +struct ndpi_iphdr iph; #ifdef STUN_TCP struct ndpi_tcphdr tcph; #else @@ -31,6 +32,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { #else packet->tcp = &tcph; #endif + packet->iph = &iph; /* IPv4 only */ is_stun(ndpi_struct, &ndpi_flow, &app_proto); return 0; -- cgit v1.2.3