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

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [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