[Webkit-unassigned] [Bug 51645] New: Testing a string with a regex of the form /(?:x|^)$/ crashes WebKit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 27 07:21:57 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=51645

           Summary: Testing a string with a regex of the form /(?:x|^)$/
                    crashes WebKit
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.html5rocks.com/tutorials/file/dndfiles/
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P1
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nathan.whetsell at gmail.com


Created an attachment (id=77506)
 --> (https://bugs.webkit.org/attachment.cgi?id=77506&action=review)
Test document

Testing a string against a regex of the form /(?:x|^)$/, where x can be any character, crashes WebKit. There can be any number of things separated by |'s. The crash seems to be triggered when the non-capturing parentheses include a ^ and are followed by a $. Also, it seems that the parentheses must be non-capturing.

A regular expression like this gets used in the html5rocks.com website. I'm also attaching a reduced version that just tests a string against /(?:x|^)$/.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list