Commit Graph

5 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
f253e11009 Add a sanity check on packet header length
The packet length must be <= MAXIMUM_SNAPLEN.

Currently, there is no D-Bus printer, thus no need for a bigger length.

Now a pachet is valid if:
capture length != 0,
packet length != 0,
capture length <= MAXIMUM_SNAPLEN,
packet length <= MAXIMUM_SNAPLEN,
packet length >= capture length.

Moreover:
Fix the packet header lengths of some fuzzed pcap files:
If the lengths are > MAXIMUM_SNAPLEN, set them to MAXIMUM_SNAPLEN.
Thus they will be always usable with this new sanity check.
2018-02-07 18:48:49 +01:00
Guy Harris
511cd61cb4 Fix some more corrupt pcapng files, turning them into pcap files. 2018-02-06 17:56:29 -08:00
Francois-Xavier Le Bail
9ad34901e9 Fix the interface capture length of some fuzzed pcap files
They will be always usable with the new interface capture length sanity
check.
(old length: 808464432, new length: 262144)
2017-01-18 09:16:38 +01:00
Francois-Xavier Le Bail
29d28b1a3f Fix the pcap version in some tests/ fuzzed pcap files
They will be always usable with the upcoming libpcap versions sanity checks.
pcap: old version: 12336.12336, new version: 2.4
pcap-ng: old version: 1.12336, new version: 1.0
2017-01-18 09:16:38 +01:00
Guy Harris
07a361befe Tests for the relts changes. 2017-01-18 09:16:38 +01:00