Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 57df341619eda217f1553fbf6ac9f0497157296b
https://github.com/WebKit/WebKit/commit/57df341619eda217f1553fbf6ac9f0497157296b
Author: Sosuke Suzuki <[email protected]>
Date: 2026-05-26 (Tue, 26 May 2026)
Changed paths:
M Source/JavaScriptCore/wasm/js/WebAssemblyBuiltin.cpp
M Source/JavaScriptCore/wasm/js/WebAssemblyCompileOptions.cpp
Log Message:
-----------
[Wasm] Add missing exception check after rope resolution
https://bugs.webkit.org/show_bug.cgi?id=315478
Reviewed by Justin Michaud.
JSString::value() can throw an out of memory exception when resolving a rope.
The intoCharCodeArray builtin and the builtins loop in
WebAssemblyCompileOptions::tryCreate continued with the null string instead of
bailing out. Add the missing exception checks.
* Source/JavaScriptCore/wasm/js/WebAssemblyBuiltin.cpp:
(JSC::DEFINE_BUILTIN_IMPLEMENTATION_I32):
* Source/JavaScriptCore/wasm/js/WebAssemblyCompileOptions.cpp:
(JSC::WebAssemblyCompileOptions::tryCreate):
Canonical link: https://commits.webkit.org/313931@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications