diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 00:02:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 00:02:17 +0000 |
commit | a23f6be9ed28eafcfea2c2bd8a4664abea537c24 (patch) | |
tree | 4a71630b1eade942bccfacd4e39cc2c2838024f9 /usr.sbin/tcpdump/print-snmp.c | |
parent | cced514271951e117cb56f06ee60f0a8a9dec51f (diff) |
fix read-one-beyond-of-array errors; ok sthen jsg
Diffstat (limited to 'usr.sbin/tcpdump/print-snmp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-snmp.c b/usr.sbin/tcpdump/print-snmp.c index 1f63238a17a..0d80d15a6f8 100644 --- a/usr.sbin/tcpdump/print-snmp.c +++ b/usr.sbin/tcpdump/print-snmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-snmp.c,v 1.16 2009/10/27 23:59:55 deraadt Exp $ */ +/* $OpenBSD: print-snmp.c,v 1.17 2009/11/12 00:02:16 deraadt Exp $ */ /* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 @@ -188,7 +188,7 @@ char *GenericTrap[] = { #define GT_ENTERPRISE 6 }; #define DECODE_GenericTrap(t) \ - ( t >= 0 && t <= sizeof(GenericTrap)/sizeof(GenericTrap[0]) \ + ( t >= 0 && t < sizeof(GenericTrap)/sizeof(GenericTrap[0]) \ ? GenericTrap[t] : (snprintf(buf, sizeof(buf), "gt=%d", t), buf)) /* |