You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasm-interp fails to validate the type of the table used in the call_indirect instruction. According to the WebAssembly specification, the table associated with call_indirect must have a funcref type.
wasm-interp raises a runtime error about uninitialized table elements instead of reporting a validation error for the incorrect table type. The output from wasm-interp is:
main() => error: uninitialized table element
Expected behavior
The runtime should detect that the table type (externref) is invalid for the call_indirect instruction and raise a validation error. The expected error message should be similar to:
Validation error: call_indirect is only valid when a table has type funcref
The text was updated successfully, but these errors were encountered:
wasm-interp
fails to validate the type of the table used in thecall_indirect
instruction. According to the WebAssembly specification, the table associated withcall_indirect
must have afuncref
type.Test case
program.wasm.txt
Environment
Actual behavior
wasm-interp
raises a runtime error about uninitialized table elements instead of reporting a validation error for the incorrect table type. The output fromwasm-interp
is:Expected behavior
The runtime should detect that the table type (
externref
) is invalid for thecall_indirect
instruction and raise a validation error. The expected error message should be similar to:The text was updated successfully, but these errors were encountered: