1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/devel/pcre/files/patch-CVE-2015-5073
Mark Felder 5a24d00278 Apply upstream fixes for a buffer overflow issue:
1571 Fix buffer overflow for forward reference within backward assertion
with excess closing parenthesis. Bugzilla 1651.

Obtained from:	PCRE svn (r1571)
MFH:		2015Q3
Security:	8a1d0e63-1e07-11e5-b43d-002590263bf5
Security:	CVE-2015-5073
2015-07-20 15:21:25 +00:00

12 lines
355 B
Plaintext

--- pcre_compile.c.orig 2015/06/22 09:38:41 1570
+++ pcre_compile.c 2015/06/23 16:34:53 1571
@@ -9449,7 +9449,7 @@
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;