Bug 23680 - WREC strange handling of very large minimum repetitions
Summary: WREC strange handling of very large minimum repetitions
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: javascript:alert(/a{11111111111111111...
Keywords: HasReduction, InRadar, Regression
Depends on:
Blocks:
 
Reported: 2009-02-02 02:20 PST by Erik Corry
Modified: 2011-08-25 15:19 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Corry 2009-02-02 02:20:47 PST
Probably some sort of overflow issue:

/a{11111111111111111111}/.test("a")

expected result false
actual result true

Pre-WREC this would give a parse error, which also seems fair enough.  The boundary was 65535/6.
Comment 1 Mark Rowe (bdash) 2009-02-02 03:02:18 PST
<rdar://problem/6547279>
Comment 2 Gavin Barraclough 2011-08-25 15:19:02 PDT
This works correctly in Yarr.