From: Francois-Xavier Le Bail Date: Sun, 20 Oct 2019 13:27:59 +0000 (+0200) Subject: RX: Add a test capture file X-Git-Tag: tcpdump-4.99-bp~646 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b5fbb1f40aa51e0f40c7d7cf3b6ee88ec41e2981 RX: Add a test capture file This capture file triggered a buffer over-read with the 4.9.2 release and was fixed in the 4.9.3 release. It was fixed in master branch by commit 4154778a262b4a7449141535a99da4d13b4c8b2e. The pcap file was updated to pass the sanity checks, keep only the relevant packets and avoid pcap_loop() error messages. Update the output of the test accordingly. Partial update from c24922e692a52121e853a84ead6b9337f4c08a94 in 4.9 branch. --- diff --git a/tests/TESTLIST b/tests/TESTLIST index c38f41a1..406a838e 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -626,6 +626,7 @@ ikev1_id_ipv6_addr_subnet-oobr ikev1_id_ipv6_addr_subnet-oobr.pcap ikev1_id_ipv6 isakmp-various-oobr isakmp-various-oobr.pcap isakmp-various-oobr.out -v aoe-oobr-1 aoe-oobr-1.pcap aoe-oobr-1.out -v -c1 frf16_magic_ie-oobr frf16_magic_ie-oobr.pcap frf16_magic_ie-oobr.out -v -c1 +rx_serviceid_oobr rx_serviceid_oobr.pcap rx_serviceid_oobr.out # bad packets from Katie Holly mlppp-oobr mlppp-oobr.pcap mlppp-oobr.out diff --git a/tests/rx_serviceid_oobr.out b/tests/rx_serviceid_oobr.out new file mode 100644 index 00000000..7f53a4b8 --- /dev/null +++ b/tests/rx_serviceid_oobr.out @@ -0,0 +1,3 @@ + 1 06:56:17.131350 IP 250.15.128.19.68 > 249.251.157.8.63246: BOOTP/DHCP, unknown (0x00), length 8085 + 2 [Invalid header: caplen==0, len==0] + 3 [Error converting time] IP 0.0.0.0.0 > 0.0.0.0.7004: rx abort (539) diff --git a/tests/rx_serviceid_oobr.pcap b/tests/rx_serviceid_oobr.pcap new file mode 100644 index 00000000..d7089d79 Binary files /dev/null and b/tests/rx_serviceid_oobr.pcap differ