Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cfde220e1cb351256dc97382c36c278c729f5ede
https://github.com/WebKit/WebKit/commit/cfde220e1cb351256dc97382c36c278c729f5ede
Author: Anand Srinivasan <[email protected]>
Date: 2026-02-18 (Wed, 18 Feb 2026)
Changed paths:
A JSTests/wasm/regress/unreachable-illegal-load-parse-error.js
M Source/JavaScriptCore/wasm/WasmFunctionParser.h
Log Message:
-----------
Add check to wasm function parser for illegal memory instructions
https://bugs.webkit.org/show_bug.cgi?id=308081
rdar://170534591
Reviewed by Keith Miller.
This is in response to a fuzzer bug that triggers a release assertion
failure instead of throwing a parse error. If the parser is given a wasm
module with no memories that contains a load or store instruction in an
unreachable expression, it should check whether there are any memories
in the module instead of triggering the assert.
Test: JSTests/wasm/regress/unreachable-illegal-load-parse-error.js
* JSTests/wasm/regress/unreachable-illegal-load-parse-error.js: Added.
(catch):
* Source/JavaScriptCore/wasm/WasmFunctionParser.h:
(JSC::Wasm::FunctionParser<Context>::parseUnreachableExpression):
Canonical link: https://commits.webkit.org/307788@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications