Skip to content

Commit f616391

Browse files
committed
Add a bunch of bounds checks.
Don't bother copying the route header - we're using the EXTRACT_ macros, so we don't have to worry about alignment. Use the length field from the packet, not just the length of the containing packet, and check to make sure the containing packet is long enough to contain it. Add a bunch of checks against the packet length. In "default_print()" calls, cut the length off at the captured data length. In other calls, don't - let the bounds checks handle caplen < length.
1 parent 1324704 commit f616391

File tree

1 file changed

+174
-49
lines changed

1 file changed

+174
-49
lines changed

0 commit comments

Comments
 (0)