[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 #4 from Philip Hazel <ph10@???> 2010-09-24 10:18:33 ---
On Thu, 23 Sep 2010, John Lindal wrote:

> --- Comment #3 from John Lindal <exim@???> 2010-09-23 17:51:07 ---
> I found MATCH_LIMIT_RECURSION. 10000 seems to be safe on my Mac, but I'll test
> on some other systems, too. Setting MATCH_LIMIT_RECURSION = MATCH_LIMIT by
> default seems way too high. I've never seen a system that can handle 10e6
> stack frames!


The problem is choosing a value suitable for the wide variety of
environments in which PCRE is run. When those limits were introduced, I
did not want to cause any matches that had previously worked to fail, so
that is why they are set high by default. I think it is probably too
late to start changing them now.

The best thing, of course, if you can manage it, is to find a way of
rewriting your regex so that it doesn't behave like this. If you haven't
got it already, Friedl's book is a good place to start for help in
understanding the concepts.

Can I close this issue?

Regards,
Philip


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