path: root/tests/kday2.out
diff options
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-01-31 16:26:21 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-01-31 16:26:21 +0000
commitd3b6650ba68c44e3a488aac17bbe56d0cd0e870d (patch)
tree372984dfa0bd4ecdc121d7d9fd2e6688438cad39 /tests/kday2.out
parentaae6b2073aeb7ba1118183bb52286e44dd04df28 (diff)
Upstream fixes for issues found with afl (Issue #417).
- Fix length checking. Check both the captured length and the on-the-wire length (the latter *should* be greater than or equal to the former, but that's not guaranteed). Add some additional length checks, so neither caplen nor length underflow. If we stop dissecting because the packet is too short, return 1, not 0, as we've "dissected" what we can; 0 means "this is LLC+SNAP with an OUI of 0 and an unknown Ethertype". commit: 743bcecdc92f88b118ec7aac4f68b606601205cc - Clean up length checks. Check only the amount of length that matters at any given point; yes, this means we do multiple checks, but so it goes. We don't need to check for LLC+SNAP - llc_print() does that for us. We do, however, need to check to make sure we can safely skip the Fore header. commit: 5c65e7532fa16308e01299988852b0dc5b027559
Notes: svn path=/vendor/tcpdump/dist/; revision=277981
Diffstat (limited to 'tests/kday2.out')
0 files changed, 0 insertions, 0 deletions