-
Notifications
You must be signed in to change notification settings - Fork 705
Open
Description
iwasm does not enforce the requirement that the element type of a table must be a reference type. This behavior violates the WebAssembly specification, which mandates that a table’s element type must be a reference type. Using an i32
type for the table element should be rejected at validation time.
Test case
negative_2.wat.txt
negative_2.wasm.txt
Your environment
- OS: Ubuntu 20.04
- CPU: amd64
- WAMR version: iwasm 2.2.0
- Commands:
iwasm --interp -f main ./program.wasm
Actual behavior
(no error or warning)
Expected State
Table type should be a ref type, got I32
Metadata
Metadata
Assignees
Labels
No labels