Date: Wed, 16 Sep 2009 06:32:23 +0000 (UTC) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197246 - head/lib/libc/regex Message-ID: <200909160632.n8G6WNNe014369@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909160632.n8G6WNNe014369>