diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-03-20 18:02:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 18:02:27 +0100 |
commit | a845e997209b987ef85a2562697d4d0522cb0c66 (patch) | |
tree | 04a9b505c8af0b5f4d8c32a774edfaf9936fbd1c /example/reader_util.c | |
parent | 8cda02bb14bad44ae71317b322d895305245e713 (diff) | |
parent | 3e259aac986bc86aa89adc2994811bb6f26a0649 (diff) |
Merge pull request #859 from catenacyber/fuzzudpfix
Checks enough data for UDP header
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index a050edb39..dd1a15d2f 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1709,10 +1709,8 @@ ether_type_check: } if(workflow->prefs.decode_tunnels && (proto == IPPROTO_UDP)) { -#if LUCA if (header->caplen < ip_offset + ip_len + sizeof(struct ndpi_udphdr)) return(nproto); /* Too short for UDP header*/ -#endif struct ndpi_udphdr *udp = (struct ndpi_udphdr *)&packet[ip_offset+ip_len]; u_int16_t sport = ntohs(udp->source), dport = ntohs(udp->dest); |