]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pim.c
Add missing bounds checking to the DVMRP and PIM print routines.
[tcpdump] / print-pim.c
index b876055fd42d909f8e4f1fb18143898d556aae9c..0a9fa600ec5482987ea1bd84fb3f245fe99f1e16 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.37.2.2 2003-11-16 08:51:38 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.37.2.3 2003-11-19 09:41:29 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -154,6 +154,7 @@ pimv1_print(register const u_char *bp, register u_int len)
        if (bp >= ep)
                return;
 
+       TCHECK(bp[1]);
        type = bp[1];
 
        switch (type) {