[pcre-dev] [Bug 1023] Infinite loop in match()

Top Page
Delete this message
Author: John Lindal
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1023] Infinite loop in match()
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #2 from John Lindal <exim@???> 2010-09-23 16:58:22 ---
When I click on the "Details" link for the attachment, it shows me the correct
data. But I'll email you a copy directly.

>> &"(.|\n)+?instead\\n"\n
>
> That looks weird. Has it been corrupted?


That is the correct pattern. It needs to match a literal \n first and then a
newline on the end. Once you see the data file, you'll understand. (It's gdb
MI2 output.)

> Sometimes patterns do just recurse for ever; that isn't PCRE's fault.


Could the code be modified to stop and return an error instead of crashing?


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