[wpt-sync] Sync PR 20245 - Limit backtracking on regexp called from blink.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 20245 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/20245
Details from upstream follow.
Dave Tapuska <dtapuska@chromium.org> wrote:
Limit backtracking on regexp called from blink.
It is possible to block the main thread with a invalid pattern, input
and CSS. Now that V8 has added a backtracking limit take advantage of it.
1000000 matches the limit Yarr (webkit's regex engine). See
https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/JavaScriptCore/yarr/Yarr.h#L50BUG=966405
Change-Id: I08bc956806bc7efb8cdc06dc0db30fa94e68df9c
Reviewed-on: https://chromium-review.googlesource.com/1915280
WPT-Export-Revision: 3ecd6e7b7d8c9db0e906654f2fa9d3acc9ffa232
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
GitHub CI Results
wpt.fyi PR Results Base Results
Ran 1 tests and 1 subtests
Firefox
TIMEOUT: 1
Chrome
OK : 1
PASS: 1
Safari
OK : 1
PASS: 1
Firefox-only failures
/html/semantics/forms/constraints/infinite_backtracking.html: Firefox: TIMEOUT
Infinite backtracking pattern terminates: Firefox: MISSING
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cd9ec693cb90
https://hg.mozilla.org/mozilla-central/rev/80a50ffb2d2d
Description
•