[pcre-dev] [Bug 960] /(?P<L1>(?P<L2>0)|(?P>L2)(?P>L1))/ gets…

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 960] /(?P<L1>(?P<L2>0)|(?P>L2)(?P>L1))/ gets recursive call error.
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=960

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #2 from Philip Hazel <ph10@???> 2010-03-07 17:37:30 ---
(In reply to comment #0)
> I wonder why (?P<L1>(?P<L2>0)|(?P>L2)(?P>L1)) gets a left recursive error:
>
>     Failed: recursive call could loop indefinitely at offset 30

>
> , where as (?P<L1>(?P<L2>0)(?P>L1)|(?P>L2)) is OK.


The answer to your question is: "Because there was a bug in PCRE." I have
committed a patch that fixes the bug.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email