[pcre-dev] [Bug 1467] Pcre hang up on specific regular expre…

Top Page
Delete this message
Author: Graycode
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1467] Pcre hang up on specific regular expression and JIT enabled
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #6 from Graycode <xgcode@???> 2014-04-22 00:41:37 ---
Philip and Zoltan, you are (of cource) correct.

My confusion turns out to be that variants of the expressions could
match the subject data at the 995 iteration and not at 996.

The 996 iteration's non-match causes PCRE to continue with its normal
back-tracking and bumping-along in the data seeking a match. The
apparent loop is just the massive number of potential match-attempt
combinations that has to be dealt with on those expressions.

The interpreter exec() halts the loop at an excess of match_limit but
as Zoltan stated earlier JIT does not.

Thanks for the support & explanations.


Regards,
Graycode


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