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

Góra strony
Delete this message
Autor: Philip Hazel
Data:  
Dla: pcre-dev
Temat: [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 #1 from Philip Hazel <ph10@???> 2010-09-23 16:38:01 ---
On Wed, 22 Sep 2010, John Lindal wrote:

> Created an attachment (id=403)

--> (http://bugs.exim.org/attachment.cgi?id=403)
> --> (http://bugs.exim.org/attachment.cgi?id=403)
> File that causes infinite loop


That didn't make it through the system. I think you have to attach it
separately in bugzilla. (Or email it to me separately.)

> I used the following pattern:
>
> &"(.|\n)+?instead\\n"\n


That looks weird. Has it been corrupted?

> My call to pcre_exec() generates an endless number of recursive calls to
> match(), until the stack overflows. The call is:
>
> pcre_exec(<regex>, NULL, <str>, 20036, 0, 0, <pmatch>, 6);
>
> on the attached file


Sometimes patterns do just recurse for ever; that isn't PCRE's fault.
However, I'll check your pattern and file when I have them.

Philip


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