WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223498
[YARR] Interpreter incorrectly matches non-BMP characters with multiple .
https://bugs.webkit.org/show_bug.cgi?id=223498
Summary
[YARR] Interpreter incorrectly matches non-BMP characters with multiple .
Michael Saboff
Reported
2021-03-18 21:03:09 PDT
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.
Attachments
Patch
(3.32 KB, patch)
2021-03-19 09:36 PDT
,
Michael Saboff
mark.lam
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Updated patch to fix layout test
(7.09 KB, patch)
2021-03-19 12:59 PDT
,
Michael Saboff
ysuzuki
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2021-03-18 21:03:45 PDT
<
rdar://74698760
>
Michael Saboff
Comment 2
2021-03-19 09:36:39 PDT
Created
attachment 423737
[details]
Patch
Michael Saboff
Comment 3
2021-03-19 12:59:52 PDT
Created
attachment 423764
[details]
Updated patch to fix layout test
Yusuke Suzuki
Comment 4
2021-03-19 13:59:06 PDT
Comment on
attachment 423764
[details]
Updated patch to fix layout test r=me
Michael Saboff
Comment 5
2021-03-22 15:08:45 PDT
Committed
r274806
(
235606@main
): <
https://commits.webkit.org/235606@main
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug