-
Notifications
You must be signed in to change notification settings - Fork 705
Open
Description
Subject of the issue
iwasm does not enforce the subtyping depth limit when compiling WebAssembly modules, which leads to successful execution of modules that should otherwise fail validation due to excessive subtyping depth. This behavior is inconsistent with other engines like V8 and WebKit, which enforce a subtyping depth limit of 64.
Test case
Your environment
- OS: Ubuntu 20.04
- CPU: amd64
- WAMR version: iwasm 2.2.0
- Commands:
iwasm --interp -f main ./program.wasm
Actual behavior
0x1:i32
Expected State
The module should fail validation due to the subtyping depth exceeding 64, aligning with the behavior observed in V8 and WebKit. An appropriate error message should indicate that the type depth exceeds the allowed limit, similar to:
subtype depth for Type section's 64th signature exceeded the limits of 63
Metadata
Metadata
Assignees
Labels
No labels