[Webkit-unassigned] [Bug 223498] New: [YARR] Interpreter incorrectly matches non-BMP characters with multiple .

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 18 21:03:09 PDT 2021


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

            Bug ID: 223498
           Summary: [YARR] Interpreter incorrectly matches non-BMP
                    characters with multiple .
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

Consider the expression:
  let m = String.fromCodePoint(0x10000).match(/../u);
It should not match.  The . atom (any character, but newline) should match the non-BMP character U+10000 leaving the second . nothing to match causing the whole RegExp to fail.

The Yarr JIT properly processes the RegExp, but the Yarr interpreter erroneously matches.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210319/50b9e09e/attachment.htm>


More information about the webkit-unassigned mailing list