]> The Tcpdump Group git mirrors - tcpdump/commit
Add sanity checks on packet header (packet length / capture length)
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 15 Jan 2018 13:39:40 +0000 (14:39 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 16 Jan 2018 07:32:52 +0000 (08:32 +0100)
commit9e6ba479d8cee861a396cae59d7cf91bd3a5a563
tree7f5898a2c2976d893df7c4e9f13de657f918af3e
parent77d26b5f883f856674ecd86d13df496320d451f5
Add sanity checks on packet header (packet length / capture length)

For a valid packet:
packet length != 0,
capture length != 0,
packet length >= capture length.

Update the output of some tests accordingly.
netdissect.h
print.c
tests/hncp_dhcpv4data-oobr.out
tests/icmp6_mobileprefix_asan.out
tests/olsr-oobr-2.out
tests/pim_header_asan-2.out
tests/rpki-rtr-oob.out
tests/rx_ubik-oobr.out
tests/vtp_asan.out