tests: add regression tests for Follow TCP Stream
authorPeter Wu <peter@lekensteyn.nl>
Thu, 5 Jul 2018 23:57:44 +0000 (01:57 +0200)
committerAnders Broman <a.broman58@gmail.com>
Fri, 6 Jul 2018 12:11:09 +0000 (12:11 +0000)
commitcaa8efa0d2435c527bb947c3fb3f1b4a610ef515
tree47b514e167685dcff03d644261ec4c27929d18b2
parent11871bee1c06723f9d7d4ef111d12d02d78814a2
tests: add regression tests for Follow TCP Stream

Verified that the tests failed without the fixes for the linked bugs.
The tests have full statement coverage(*1) for check_follow_fragments
and follow_tcp_tap_listener. For details and Scapy script, see:
https://git.lekensteyn.nl/peter/wireshark-notes/commit/crafted-pkt/badsegments.py?id=4ecf9d858b49e76d8a9c29df01ce1bd523ae6704

 (*1) except for `if (data_length <= data_offset) { data_length = 0; }`

Change-Id: I625536df375272cf6c9116231194c39df1217fae
Ping-Bug: 13700
Ping-Bug: 14944
Reviewed-on: https://code.wireshark.org/review/28618
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
CMakeLists.txt
test/captures/tcp-badsegments.pcap [new file with mode: 0644]
test/suite_follow.py [new file with mode: 0644]