chiark
/
gitweb
/
~ian
/
pcre3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream patch to fix buffer overflow for forward reference within backward assertion...
[pcre3.git]
/
pcre_compile.c
diff --git
a/pcre_compile.c
b/pcre_compile.c
index ae0027b8253cacfc78902968692f880f1284aeb8..c76ca1418d97679764ff32c4370cc74a3f06e741 100644
(file)
--- a/
pcre_compile.c
+++ b/
pcre_compile.c
@@
-9265,7
+9265,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;