Open pventuzelo opened 4 years ago
This is an "error" because the custom dynlink
section is malformed. wasm-validate
currently fails in this case, but will just produce only a warning if run with --ignore-custom-section-errors
. Perhaps this is the wrong default? @sbc100 wdyt?
Perhaps we should make it clear when the error is from a custom section? And point users to --ignore-custom-section-errors
in the error message?
Also, perhaps that flag is misnamed, since "ignore" and "only-warn" are two different things, no?
Hi,
During fuzzing I found that the following module was consider invalid by wabt due to a
leb128
parsing error. Binaryen choose to "reject" this module but precise that it is a valid module. Other tools like wasmer, wasmtime and wasm-tools valid this module.Reproducing
Download: reject_leb128_wabt.zip
WABT:
Other tools:
Branch: master commit: 15264cd20be3510058e56d1de5db1f32ae5364eb