Closed Bug 444926 Opened 17 years ago Closed 14 years ago

regular expression (regexp) enters infinite loop with non-greedy atom

Categories

(Rhino Graveyard :: Core, defect)

1.7R1
Other
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Unassigned)

Details

Under rhino the following regular expression enters an infinite loop: /(a*?)+?/.exec("a") I checked bug 359651 or bug 443590 but as they are not in the same component I don't think they are related. (especially as FF3 does not exhibit the infinite loop).
My patch in pull request #22 ( https://github.com/mozilla/rhino/pull/22 ) will fix this bug.
Merged your pull request. Thanks!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.