Fix out-of-bounds heap read caused by using header->len instead of header->caplen (as provided in pcap_loop)

This commit is contained in:
alexei-argus
2017-05-10 14:16:46 +03:00
parent c2bbe79a3e
commit 8a7dc10f51
+1 -1
View File
@@ -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));
}
/* ********************************************************** */