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

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