Closed
Bug 479168
Opened 17 years ago
Closed 15 years ago
Regular Expression (Regex) enters infinite loop?
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: karl, Unassigned)
References
(
URL
)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090218 Minefield/3.2a1pre
When attempting to test a particular string with a particular regular expression the line failed to evaluate, and an Unresponsive Script Error message was shown.
The line is:
//^\w+(_\w+)+$//.test("000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000(number)")
Reproducible: Always
Steps to Reproduce:
1.Navigate to example page (http://werehamster.net/bugs/regex-bug.html)
2.run through tests
Actual Results:
Firefox hangs, until the unresponsive script error message appears, whereupon it it possible to halt the script.
Expected Results:
The regular expression should be evaluated correctly, or if that is not possible, then an error should be thrown.
#444926 is a similar ticker, however that appears to be solved (at least in minefield latest).
Comment 1•17 years ago
|
||
Confirmed on Linux with 3.0.6 and 3.1b3pre. Hangs on 3rd test.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Updated•17 years ago
|
Product: Firefox → Core
QA Contact: general → general
Updated•17 years ago
|
Assignee: nobody → general
Component: General → JavaScript Engine
QA Contact: general → general
Comment 2•15 years ago
|
||
Is this reproducible with FF 3.6 or 4.0beta?
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Is this reproducible with FF 3.6 or 4.0beta?
http://xenomonkey.com/bugs/regex-bug.html no longer exists.
Comment 4•15 years ago
|
||
> http://xenomonkey.com/bugs/regex-bug.html no longer exists.
indeed
URL: http://werehamster.net/bugs/regex-bug... → NA http://werehamster.net/bugs/regex-...
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•