[Webkit-unassigned] [Bug 25071] Certain regular expressions fail with large strings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 12 18:39:51 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=25071


Gavin Barraclough <barraclough at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |barraclough at apple.com




--- Comment #3 from Gavin Barraclough <barraclough at apple.com>  2012-03-12 18:39:51 PST ---
We currently limit the number of match attempts to 1000000 (see matchLimit in Yarr.h).

There are two ways that our current behavior seem undesirable here:

(1) There is no need to fail to match this regular expression, it's not *that* slow.  Rather than the current 1000000 limit, Yarr to better cooperate with JSC's timeout checking mechanism to stop slow regular expressions.

(2) When the VM terminates regular expression processing early due to resource restrictions, we shouldn't just be returning false, indicating no-match - since this string does match.  It would be better to throw an error indicating a problem.

I'll file two new specific bugs for these problems.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list