Bug 166701

Summary: WebAssembly: Module.customSections test copying
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: Sergey Rubanov <chi187>
Status: RESOLVED FIXED    
Severity: Normal CC: chi187, jfbastien, keith_miller, k_tamkun, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 165159    
Bug Blocks: 161709    

JF Bastien
Reported 2017-01-04 15:46:22 PST
In bug #165159 I forgot to check that the ArrayBuffer obtained is always a new object, not a view onto the old. This is important because modifying the ArrayBuffer shouldn't modify the original custom section (there would also be lifetime issues).
Attachments
Sergey Rubanov
Comment 1 2026-07-22 13:22:27 PDT
Sergey Rubanov
Comment 2 2026-07-22 13:31:59 PDT
(This is already fixed in the engine (ArrayBuffer::tryCreate copies the payload). Added a regression test that mutates a returned buffer and checks later customSections results are unchanged.)
EWS
Comment 3 2026-08-01 20:09:21 PDT
Committed 318396@main (4517c96eee86): <https://commits.webkit.org/318396@main> Reviewed commits have been landed. Closing PR #69958 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2026-08-01 20:10:13 PDT
Note You need to log in before you can comment on or make changes to this bug.