]> The Tcpdump Group git mirrors - tcpdump/commit
More bounds and length checks.
authorGuy Harris <[email protected]>
Sun, 23 Oct 2016 02:33:43 +0000 (19:33 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:40 +0000 (09:16 +0100)
commite4371fa1e8d214b4866234a0b9bcac263b6f9bc9
tree2998dc59be399a2b21d78ddd93cbbc066e71fffd
parent3b841a385289bc6d12b06c5c0cf72c5e1e208b39
More bounds and length checks.

Catch INTEGER values with a length of 0, so we don't fetch a byte that
doesn't belong to the value.

Fix what appears to be a long-standing bug in the OID prefix matching
code, wherein the length of the *first* prefix in the table is used as
the length of *all* prefixes, and add some packet-length checking to
that list.

Report packets with an invalid SNMP version number as being SNMP, so
we at least indicate *that*.
print-snmp.c