]> The Tcpdump Group git mirrors - tcpdump/commit
Do bounds checks when printing character and octet strings.
authorGuy Harris <[email protected]>
Wed, 5 Oct 2016 03:38:53 +0000 (20:38 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:40 +0000 (09:16 +0100)
commit9f8c1a7492dd68f124b809d4fdc136854b1cf494
tree2fbcf5ee4eb28c011984e547f116990a1b9deccc
parentc37100fd4c70a036e12c5e760326c166751df46c
Do bounds checks when printing character and octet strings.

Pull the code in asn1_print() to print octet sequences and (presumed)
printable strings into routines of their own, and use them when we're
printing them outside asn1_print().

That fixes some cases where we can run past the end of the packet
buffer.
print-snmp.c