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 */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to