X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=pcre3.git;a=blobdiff_plain;f=pcre_compile.c;fp=pcre_compile.c;h=29300d024edf2566e16c3416b741d04d8ef12ec4;hp=1bc2b7f030a1a1c9eb728cf804f97f258d59b3c6;hb=e747a910bf5e16b8da233b0b4acd4390878897c4;hpb=c179b7ee52dde5fa9ff60a64a5401a0a221cc2f4 diff --git a/pcre_compile.c b/pcre_compile.c index 1bc2b7f..29300d0 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -7289,7 +7289,12 @@ for (;; ptr++) so far in order to get the number. If the name is not found, leave the value of recno as 0 for a forward reference. */ - else + /* This patch (removing "else") fixes a problem when a reference is + to multiple identically named nested groups from within the nest. + Once again, it is not the "proper" fix, and it results in an + over-allocation of memory. */ + + /* else */ { ng = cd->named_groups; for (i = 0; i < cd->names_found; i++, ng++)