From 8a7dc10f511462e4857e9fee31980772209e7d2a Mon Sep 17 00:00:00 2001 From: alexei-argus Date: Wed, 10 May 2017 14:16:46 +0300 Subject: Fix out-of-bounds heap read caused by using header->len instead of header->caplen (as provided in pcap_loop) --- example/ndpi_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') 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)); } /* ********************************************************** */ -- cgit v1.2.3