public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/libdm/regex ttree.c
@ 2010-08-09 10:58 thornber
  0 siblings, 0 replies; only message in thread
From: thornber @ 2010-08-09 10:58 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	thornber@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

--- LVM2/libdm/regex/ttree.c	2008/11/03 18:59:59	1.3
+++ LVM2/libdm/regex/ttree.c	2010/08/09 10:58:27	1.4
@@ -91,10 +91,10 @@
 				return 0;
 			}
 
-			k = *key++;
-
-			if (count)
+			if (count) {
+				k = *key++;
 				c = &((*c)->m);
+			}
 		}
 	}
 	(*c)->data = data;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-09 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 10:58 LVM2/libdm/regex ttree.c thornber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).