tcpdump/tests/heapoverflow-in_checksum.out
Guy Harris 5dc1860d82 CVE-2017-13030/PIM: Redo bounds checks and add length checks.
Use ND_TCHECK macros to do bounds checking, and add length checks before
the bounds checks.

Add a bounds check that the review process found was missing.

This fixes a buffer over-read discovered by Bhargava Shastry,
SecT/TU Berlin.

Add a test using the capture file supplied by the reporter(s), modified
so the capture file won't be rejected as an invalid capture.

Update one test output file to reflect the changes.
2017-09-13 12:25:44 +01:00

5 lines
269 B
Plaintext

IP (tos 0x30, ttl 48, id 12336, offset 0, flags [DF], proto PIM (103), length 12336, bad cksum 3030 (->2947)!)
48.48.48.48 > 48.48.48.48: PIMv2, length 12316
Hello, RFC2117-encoding, cksum 0x3030 (unverified)
Unknown Option (12336), length 12336, Value: [|pim]