]> The Tcpdump Group git mirrors - tcpdump/commit
Add some attribute/TLV length checks.
authorGuy Harris <[email protected]>
Sat, 9 Jun 2012 02:07:20 +0000 (19:07 -0700)
committerGuy Harris <[email protected]>
Sat, 9 Jun 2012 02:07:20 +0000 (19:07 -0700)
commit26687fd6b92943a63d561a7e7f6f6d422296f81c
tree6edab0156b7f76c10c8e3c1c23a7372ac9c2b637
parent44170613859f781dd1891951ac3f1179f4559b69
Add some attribute/TLV length checks.

Make sure we don't run past the end of a BGP attribute or LDP TLV when
dissecting the attribute/TLV.

Make some of the code do a bit more of a "step the pointer through the
data"-style dissection; that was done while debugging the changes in
question.  It also fixes up some code to not check for more data than
should actually be there.

Update references to RFC 4906 from the draft, and note that RFC 4447
replaces it.
decode_prefix.h
print-bgp.c
print-ldp.c