diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-07-17 15:15:18 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-07-17 15:15:18 +0000 |
commit | 14f400887deb587c8c36cb1bfa098840920f6944 (patch) | |
tree | 91c202b4b77c66792d3d0aac73abb06dab936787 /pcre_compile.c | |
parent | d9ca2e7ce39245e928790396e619e5c56a0dc8c1 (diff) | |
download | pcre-14f400887deb587c8c36cb1bfa098840920f6944.tar.gz |
Fix bad compile of possessively repeated conditional group that could match an
empty string.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1576 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r-- | pcre_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index 96b1b0d..ae76007 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -6297,7 +6297,7 @@ for (;; ptr++) memmove(bracode + 1 + LINK_SIZE, bracode, IN_UCHARS(nlen)); code += 1 + LINK_SIZE; nlen += 1 + LINK_SIZE; - *bracode = OP_BRAPOS; + *bracode = (*bracode == OP_COND)? OP_BRAPOS : OP_SBRAPOS; *code++ = OP_KETRPOS; PUTINC(code, 0, nlen); PUT(bracode, 1, nlen); |