Closed
Bug 885299
Opened 11 years ago
Closed 11 years ago
Regexp stop working when a group match more than 999997 time
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 838588
People
(Reporter: mehdi.rande, Unassigned)
References
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36 Steps to reproduce: // This is a simplify case, not the real use case. var regexp = /((?:.)*)/; var str = ''; // Build a very long string while (str.length < 999997) str = str + 'A'; // Try to make it match the regexp var match = str.match(regexp); console.log("Match for 999997 chars : ", match); str = str + 'A'; match = str.match(regexp); console.log("Match for 999998 chars : ", match); Actual results: Match for 999997 chars : 2 Match for 999998 chars : null Expected results: Match for 999997 chars : 2 Match for 999998 chars : 2
Updated•11 years ago
|
Assignee: nobody → general
Blocks: PortYarr
Component: Untriaged → JavaScript Engine
Keywords: regression
OS: Linux → All
Product: Firefox → Core
Version: 17 Branch → 2.0 Branch
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•11 years ago
|
||
1st Regression window Good: http://hg.mozilla.org/mozilla-central/rev/0ee09dea0911 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100813 Minefield/4.0b4pre ID:20100813140349 Bad: Both broken http://hg.mozilla.org/mozilla-central/rev/fc6783c960ca Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100813 Minefield/4.0b4pre ID:20100813142423 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0ee09dea0911&tochange=fc6783c960ca Regressed by: 597254d97174 Chris Leary — Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2nd Regression window Bad: Both broken http://hg.mozilla.org/mozilla-central/rev/b69d30cc0b24 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110606 Firefox/7.0a1 ID:20110606110214 Bad: The latter broken http://hg.mozilla.org/mozilla-central/rev/3589f8cefd83 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110606 Firefox/7.0a1 ID:20110606132754 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b69d30cc0b24&tochange=3589f8cefd83 Regressed by: cc36a234d0d6 David Mandelin — Bug 625600: Update Yarr import to WebKit rev 86639, r=cdleary,dvander
Blocks: 625600
This sounds similar to bug 838588 (try running the testcase in comment 7 of that bug).
Reporter | ||
Comment 3•11 years ago
|
||
Yep it's the same
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•