Skip to contentSkip to conversation

LVM2/libdm/regex ttree.c

PATCH [email protected] 1 participant 1 message Aug 9, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: thornber at sourceware.org 2010-08-09 10:58:27

Modified files:
libdm/regex : ttree.c

Log message:
[REGEX] fix a long standing off-by-one error (found by valgrind-pool)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/regex/ttree.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4

libdm/regex/ttree.c +3 -3
@@ -91,10 +91,10 @@
 				return 0;
 			}
 
-			k = *key++;
-
-			if (count)
+			if (count) {
+				k = *key++;
 				c = &((*c)->m);
+			}
 		}
 	}
 	(*c)->data = data;