diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-12-01 07:01:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 07:01:49 +0100 |
commit | 983b8e8eee27788fb9e11cfa8cbc8539eb9c4ef4 (patch) | |
tree | fb32051e6603debc58505deb9ecca7691a1a95c4 /fuzz/fuzz_is_stun.c | |
parent | 24df1913ac7bd585a010d1b1601768206e578353 (diff) |
STUN: parsing of DATA attribute (#2179)
Diffstat (limited to 'fuzz/fuzz_is_stun.c')
-rw-r--r-- | fuzz/fuzz_is_stun.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |