diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-06-23 16:34:53 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-06-23 16:34:53 +0000 |
commit | 764692f9aea9eab50fdba6cb537441d8b34c6c37 (patch) | |
tree | edc0f07f19313559184df27b44110404332ba078 /pcre_compile.c | |
parent | b45b5bd01bae6b9eefc2e4326876cd08ca96a1e4 (diff) | |
download | pcre-764692f9aea9eab50fdba6cb537441d8b34c6c37.tar.gz |
Fix buffer overflow for forward reference within backward assertion with excess
closing parenthesis. Bugzilla 1651.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1571 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 a9d1021..96b1b0d 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -9449,7 +9449,7 @@ OP_RECURSE that are not fixed length get a diagnosic with a useful offset. The exceptional ones forgo this. We scan the pattern to check that they are fixed length, and set their lengths. */ -if (cd->check_lookbehind) +if (errorcode == 0 && cd->check_lookbehind) { pcre_uchar *cc = (pcre_uchar *)codestart; |