diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-25 20:36:16 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-02-07 18:48:49 +0100 |
commit | f253e110096ed673dc9de26da43ca80eaa2baec1 (patch) | |
tree | 653cd4d65e298345866b9020cc1a737384fc97a3 /tests/isoclns-heapoverflow-3.out | |
parent | fb154b00bad613756c18c56dd01bbb37e78f1b22 (diff) | |
download | tcpdump-f253e110096ed673dc9de26da43ca80eaa2baec1.tar.gz |
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.
Diffstat (limited to 'tests/isoclns-heapoverflow-3.out')
-rw-r--r-- | tests/isoclns-heapoverflow-3.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/isoclns-heapoverflow-3.out b/tests/isoclns-heapoverflow-3.out index 74d2a227..e3fa3a6d 100644 --- a/tests/isoclns-heapoverflow-3.out +++ b/tests/isoclns-heapoverflow-3.out @@ -1 +1 @@ -fe:fe:fe:fe:fe:fe > 30:30:da:fe:fe:fe, ethertype OSI (0xfefe), length 808464432: OSI NLPID CLNP (0x81): 00 > e8.3030, Echo Request, length 808464417 +fe:fe:fe:fe:fe:fe > 30:30:da:fe:fe:fe, ethertype OSI (0xfefe), length 262144: OSI NLPID CLNP (0x81): 00 > e8.3030, Echo Request, length 262129 |