diff options
author | alexei-argus <alexei@argus-sec.com> | 2017-05-10 14:16:46 +0300 |
---|---|---|
committer | alexei-argus <alexei@argus-sec.com> | 2017-05-10 14:16:46 +0300 |
commit | 8a7dc10f511462e4857e9fee31980772209e7d2a (patch) | |
tree | 616ef3ecdbf6c6e177774dbd062925872905abb9 | |
parent | c2bbe79a3ef4b67bd9d2815c22aef0dd770bf7f1 (diff) |
Fix out-of-bounds heap read caused by using header->len instead of header->caplen (as provided in pcap_loop)
-rw-r--r-- | example/ndpi_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index f756fbaf5..b07a41e03 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -908,7 +908,7 @@ struct ndpi_proto ndpi_workflow_process_packet (struct ndpi_workflow * workflow, /* process the packet */ return(packet_processing(workflow, time, vlan_id, iph, iph6, - ip_offset, header->len - ip_offset, header->len)); + ip_offset, header->caplen - ip_offset, header->caplen)); } /* ********************************************************** */ |