Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 13bfbf94f49eab45ea7bf22c2c02759bf911bc11
https://github.com/WebKit/WebKit/commit/13bfbf94f49eab45ea7bf22c2c02759bf911bc11
Author: Kai Tamkun <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
A JSTests/stress/resizable-array-constant-folding.js
M Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
Log Message:
-----------
[JSC] Use-after-free after Wasm memory grow via stale pointer folded by
DFGConstantFoldingPhase
https://bugs.webkit.org/show_bug.cgi?id=312781
rdar://174994263
Reviewed by Yijia Huang.
Exempts resizable/growable-shared views from GetIndexedPropertyStorage constant
folding.
Converting the vector to a constant storage pointer is invalid if the vector
can be
reallocated without notice.
resizable-array-constant-folding.js tests the effects of writing to a
WebAssembly
memory grown after constant folding.
* JSTests/stress/resizable-array-constant-folding.js: Added.
(trigger):
* Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):
Originally-landed-as: 305413.726@safari-7624-branch (80760a59ebe9).
rdar://180437068
Canonical link: https://commits.webkit.org/316043@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications