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
$ spec/interpreter/wasm -d type-mismatch-reduced.wat -o type-mismatch-reduced.wasm
$ wasmer validate type-mismatch-reduced.wasm
error: failed to validate `type-mismatch-reduced.wasm`
╰─> 1: Validation error: type mismatch: not enough operands (at offset 35)
Expected behavior
I was expecting the module to validate without an error.
This is the case for the reference validator (part of the above conversion) and for wasm-validate from wabt:
@syrusakbary This is wasmer 1.0.0-alpha4 (also included in the original bug report)
Note: I'm not using Wasmer from Python. I have a vanilla Wasm-module which fails to validate,
while it validates with the reference interpreter/validator, with wabt, and with V8, Chakra, SpiderMonkey, and JavaScriptCore when expressed as a self-contained JavaScript program.
It looks like this is a bug in the version of wasmparser we're using and already fixed in the latest release of wasmparser. Wasmparser has changed enough that updating will require some effort.
Describe the bug
Consider the following Wasm module:
When validating the module I get a wasmer validation error, even though the module should validate.
I don't have the rust-compiler installed (not needed to reproduce), and I'm on Mac OSX Mojave:
Steps to reproduce
Expected behavior
I was expecting the module to validate without an error.
This is the case for the reference validator (part of the above conversion) and for
wasm-validate
from wabt:This is also the case for the validator implementations inside V8, Chakra, SpiderMonkey, and JavaScriptCore installed via jsvu:
when validating the corresponding, self-contained module:
Actual behavior
The validation fails.
The text was updated successfully, but these errors were encountered: