chiark / gitweb /
pcre3 (2:8.38-1) unstable; urgency=low
[pcre3.git] / debian / patches / fix_find_fixedlength.patch
1 Description: Fix buffer overflow for forward reference within backward assertion with excess closing parenthesis.
2  Strictly, this is a backport, but the patch is trivial.
3 Origin: upstream http://vcs.pcre.org/pcre?view=revision&revision=1571
4 Bug: https://bugs.exim.org/show_bug.cgi?id=1651
5 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790000
6 Last-Update: 2015-06-26
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 Index: b/pcre_compile.c
10 ===================================================================
11 --- a/pcre_compile.c    2015-05-26 08:24:55.000000000 +0100
12 +++ b/pcre_compile.c    2015-06-26 08:00:13.000000000 +0100
13 @@ -9265,7 +9265,7 @@
14  exceptional ones forgo this. We scan the pattern to check that they are fixed
15  length, and set their lengths. */
16  
17 -if (cd->check_lookbehind)
18 +if (errorcode == 0 && cd->check_lookbehind)
19    {
20    pcre_uchar *cc = (pcre_uchar *)codestart;
21