Ethereal-dev: [Ethereal-dev] Fix for small bug in VMS parser

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Marc Milgram <mmilgram@xxxxxxxxxxxx>
Date: 07 Mar 2002 10:45:28 -0500
Occasionally the VMS parser would read off the end of string, and find
some old data that looked useful, but was bogus for the frame.

-Marc



Index: wiretap/vms.c
===================================================================
RCS file: /cvsroot/ethereal/wiretap/vms.c,v
retrieving revision 1.10
diff -u -r1.10 vms.c
--- vms.c	2002/03/05 08:39:29	1.10
+++ vms.c	2002/03/07 15:36:22
@@ -269,7 +269,7 @@
 {
     int i = 0;
 
-    while (i<VMS_LINE_LENGTH && !isalnum(line[i]))
+    while (i<VMS_LINE_LENGTH && line[i] && !isalnum(line[i]))
         i++;
 
     if (! isxdigit(line[i]))