diff options
author | dds <dds@FreeBSD.org> | 2009-09-16 06:32:23 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2009-09-16 06:32:23 +0000 |
commit | 510264aac8f582a05fba8f9397b516b0b8135b06 (patch) | |
tree | 63f10b541894ce2564db756b61845fe0329d242c /lib/libc | |
parent | 961cacc4b4c1af0eeac8f5fdde2bf3c7e3e6c392 (diff) | |
download | FreeBSD-src-510264aac8f582a05fba8f9397b516b0b8135b06.zip FreeBSD-src-510264aac8f582a05fba8f9397b516b0b8135b06.tar.gz |
Fix an off-by-one error in the marking of the O_CH operator
following an OOR2 operator.
PR: 130504
MFC after: 2 weeks
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/regex/engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index 4c3f555..2a1a75e 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -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 */ |