fix off-by-one in bounds check
authorjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 00:20:21 +0000 (00:20 +0000)
committerjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 00:20:21 +0000 (00:20 +0000)
commitf8f19b68202e3ba771edc4bb569b4da7ff2ddcf2
treea9e1a63cbceb1e790fc4635856261f20a5b7fada
parent470fe335ced0ec989131037bd9155b67561938d9
fix off-by-one in bounds check

found by "buffer overflow 'ContextVarbind' 3 <= 3" smatch error
ok miod@ stsp@
usr.sbin/tcpdump/print-snmp.c