]> The Tcpdump Group git mirrors - tcpdump/commit
Add a bunch of bounds checks.
authorguy <guy>
Fri, 6 May 2005 02:16:26 +0000 (02:16 +0000)
committerguy <guy>
Fri, 6 May 2005 02:16:26 +0000 (02:16 +0000)
commitf61639179282f8e796966b21e45f79db317d7bdb
tree585f8d3696420ea920a84fa2f315727800008358
parent13247041388fef082829d0ca1d89fe1c0adc6db6
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.
print-decnet.c