Bug 976369 - Increase Yarr's match limit to unregress dzone website. r=jandem
authorTill Schneidereit <till@tillschneidereit.net>
Wed, 26 Feb 2014 16:57:04 +1300
changeset 171269 52577b51029a30b2a1eacbebb0b5d64c8ed3a063
parent 171268 4d62486d28880f4cfc706b0cb8a7c991238b5d26
child 171270 39c3f1e13db045939decc02cb981df1aa5eb01b6
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersjandem
bugs976369
milestone30.0a1
Bug 976369 - Increase Yarr's match limit to unregress dzone website. r=jandem
js/src/yarr/Yarr.h
--- a/js/src/yarr/Yarr.h
+++ b/js/src/yarr/Yarr.h
@@ -46,17 +46,17 @@ namespace JSC { namespace Yarr {
 #define YarrStackSpaceForBackTrackInfoParentheses 2
 
 static const unsigned quantifyInfinite = UINT_MAX;
 static const unsigned offsetNoMatch = (unsigned)-1;
 static const unsigned offsetError = (unsigned)-2;
 
 // The below limit restricts the number of "recursive" match calls in order to
 // avoid spending exponential time on complex regular expressions.
-static const unsigned matchLimit = 1000000;
+static const unsigned matchLimit = 2500000;
 
 enum JSRegExpResult {
     JSRegExpMatch = 1,
     JSRegExpNoMatch = 0,
     JSRegExpErrorNoMatch = -1,
     JSRegExpErrorHitLimit = -2,
     JSRegExpErrorNoMemory = -3,
     JSRegExpErrorInternal = -4