Bug 239562

Summary: CSS typed om serialization should use an allocated stack instead of recursion
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: NEW ---    
Severity: Normal CC: clopez, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, sam, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch achristensen: review?, ews-feeder: commit-queue-

Description Alex Christensen 2022-04-20 13:33:06 PDT
CSS typed om serialization should use an allocated stack instead of recursion
Comment 1 Alex Christensen 2022-04-20 13:33:52 PDT
Created attachment 458009 [details]
Patch
Comment 2 EWS Watchlist 2022-04-20 13:36:31 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Alex Christensen 2022-04-20 13:43:43 PDT
Filed https://bugs.chromium.org/p/chromium/issues/detail?id=1318183 to notify Chrome they have the same bug.
Comment 4 Sam Weinig 2022-04-20 14:39:48 PDT
Comment on attachment 458009 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=458009&action=review

> Source/WebCore/css/typedom/numeric/CSSMathInvert.cpp:79
> +    RunLoop::current().dispatch([m_value = WTFMove(m_value)] { });

What's this about? If this is really necessary, it seems like it deserves a meaty comment.
Comment 5 Alex Christensen 2022-04-20 14:59:35 PDT
If we don't do that, then we get a similar stack overflow crash in the destructors which call each other.  Will add comment.
Comment 6 Alex Christensen 2022-04-20 15:07:06 PDT
Created attachment 458018 [details]
Patch
Comment 7 Alex Christensen 2022-04-22 13:15:31 PDT
https://github.com/web-platform-tests/wpt/pull/33756
Comment 8 Radar WebKit Bug Importer 2022-04-27 13:34:12 PDT
<rdar://problem/92417190>
Comment 9 Alex Christensen 2022-05-13 12:56:01 PDT
Created attachment 459317 [details]
Patch
Comment 10 Alex Christensen 2022-05-18 09:10:20 PDT
Created attachment 459545 [details]
Patch