Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 70f3c3efa49f915adda669d981e8ab795a7e25c8
https://github.com/WebKit/WebKit/commit/70f3c3efa49f915adda669d981e8ab795a7e25c8
Author: Sosuke Suzuki <[email protected]>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
A JSTests/wasm/stress/parse-unreachable-try-table.js
M Source/JavaScriptCore/wasm/WasmFunctionParser.h
Log Message:
-----------
[JSC] Fix parsing unreachable `try_table`
https://bugs.webkit.org/show_bug.cgi?id=293106
Reviewed by Yusuke Suzuki.
`try_table` blocks, like `try` and `block`, are always
terminated by an `end` opcode (`0x0b`). In unreachable
code paths, `parseUnreachableExpression` increments
`m_unreachableBlocks` for `try`/`block` so the parser
later skips the corresponding `end`, but it didn’t do
this for `try_table`.
This patch changes to increment `m_unreachableBlocks`
for unreachable `try_table` blocks as well, allowing
the parser to consume the `end` opcode and parse the
function correctly.
Canonical link: https://commits.webkit.org/295678@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes