Blame SOURCES/pcre-8.38-Yet-another-duplicate-name-bugfix-by-overestimating-.patch

684a2c
From b7537308b7c758f33c347cb0bec62754c43c271f Mon Sep 17 00:00:00 2001
684a2c
From: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
684a2c
Date: Sat, 27 Feb 2016 17:38:11 +0000
684a2c
Subject: [PATCH] Yet another duplicate name bugfix by overestimating the
684a2c
 memory needed (i.e. another hack - PCRE2 has this "properly" fixed).
684a2c
MIME-Version: 1.0
684a2c
Content-Type: text/plain; charset=UTF-8
684a2c
Content-Transfer-Encoding: 8bit
684a2c
684a2c
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1636 2f5784b3-3f2a-0410-8824-cb99058d5e15
684a2c
684a2c
Petr Písař: Ported to 8.38.
684a2c
684a2c
diff --git a/pcre_compile.c b/pcre_compile.c
684a2c
index 5019854..4ffea0c 100644
684a2c
--- a/pcre_compile.c
684a2c
+++ b/pcre_compile.c
684a2c
@@ -7311,7 +7311,12 @@ for (;; ptr++)
684a2c
           so far in order to get the number. If the name is not found, leave
684a2c
           the value of recno as 0 for a forward reference. */
684a2c
 
684a2c
-          else
684a2c
+          /* This patch (removing "else") fixes a problem when a reference is
684a2c
+          to multiple identically named nested groups from within the nest.
684a2c
+          Once again, it is not the "proper" fix, and it results in an
684a2c
+          over-allocation of memory. */
684a2c
+
684a2c
+          /* else */
684a2c
             {
684a2c
             ng = cd->named_groups;
684a2c
             for (i = 0; i < cd->names_found; i++, ng++)
684a2c
-- 
684a2c
2.5.0
684a2c