]> The Tcpdump Group git mirrors - tcpdump/commit
Add more bounds checks to the NFS dissector - check before references to
authorguy <guy>
Sat, 22 Dec 2007 03:08:04 +0000 (03:08 +0000)
committerguy <guy>
Sat, 22 Dec 2007 03:08:04 +0000 (03:08 +0000)
commited1906f1fecee695cba92b655aec96a842961923
tree9cafd0115f14b62675c249d972886a181ae693c7
parentefb80785aa98567c48553f9134781b0d6e02a16a
Add more bounds checks to the NFS dissector - check before references to
items in the RPC header.

When dissecting NFS over TCP, fetch the fragment header length, use it
to limit the dissection of the request or reply (in case there's more
than one request or reply in the packet), and do the same
direction-plus-port checks that are done for NFS over UDP.  Also
eliminate the bounds check for the RPC header in the TCP dissector code,
and do checks for the fields it looks at (other checks are done by the
NFS dissector).
print-nfs.c
print-tcp.c