svn commit: r197246 - head/lib/libc/regex

Diomidis Spinellis dds at FreeBSD.org
Wed Sep 16 06:32:23 UTC 2009


Author: dds
Date: Wed Sep 16 06:32:23 2009
New Revision: 197246
URL: http://svn.freebsd.org/changeset/base/197246

Log:
  Fix an off-by-one error in the marking of the O_CH operator
  following an OOR2 operator.
  
  PR:		130504
  MFC after:	2 weeks

Modified:
  head/lib/libc/regex/engine.c

Modified: head/lib/libc/regex/engine.c
==============================================================================
--- head/lib/libc/regex/engine.c	Wed Sep 16 06:29:23 2009	(r197245)
+++ head/lib/libc/regex/engine.c	Wed Sep 16 06:32:23 2009	(r197246)
@@ -1075,7 +1075,7 @@ step(struct re_guts *g,
 						OP(s = g->strip[pc+look]) != O_CH;
 						look += OPND(s))
 					assert(OP(s) == OOR2);
-				FWD(aft, aft, look);
+				FWD(aft, aft, look + 1);
 			}
 			break;
 		case OOR2:		/* propagate OCH_'s marking */


More information about the svn-src-head mailing list