mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 10:33:28 +08:00
5dc1860d82
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.
5 lines
269 B
Plaintext
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]
|