Repository navigation
interp: assert stop_on_first_error in ReadBinaryInterp - #2816
Conversation
BinaryReaderInterp does not support collect-all-errors mode. Follow-up to WebAssembly#2812 / WebAssembly#2747. Signed-off-by: Gaurav Chaudhary <[email protected]>
| break; | ||
| case ExternalKind::Tag: | ||
| type = tag_types_[item_index].Clone(); | ||
| break; |
There was a problem hiding this comment.
Revert this chunk (maybe this block needs to be in // clang-format off .. bit doesn't need to be part of this change).
Revert unrelated OnExport clang-format rewrite. Follow-up to WebAssembly#2812 / WebAssembly#2747. Signed-off-by: Gaurav Chaudhary <[email protected]>
|
CIFuzz is still failing because it uses the google/oss-fuzz harness ( That hits the assert added here on purpose — no further wabt change needed for this. Fix is to set the 4th Sir @sbc100 should I open a PR there directly, or file an issue first please give feedback ??? |
|
It looks like maybe fuzzers/read_binary_interp_fuzzer.cc need updating here. I'll send a PR to https://github.com/google/oss-fuzz/ to change it hedre. |
`ReadBinaryIr` fails on any module that has a function in it once
`skip_function_bodies` is set. Reading sqlite (built with emscripten)
both ways:
```
skip_function_bodies=0 -> ok
skip_function_bodies=1 -> FAILED
function 34 missing end marker
```
34 is just its first non-imported function, so it gives up on the first
body it reaches.
`BeginFunctionBody` pushes a label for the function, but with bodies
skipped the reader steps straight over the body and the `end` that would
pop that label never arrives. `EndFunctionBody` then sees it still
sitting on the stack and reports the body as missing its end marker.
The option was only ever meant for the objdump reader, which doesn't
build a module, so this declares it unsupported here instead of teaching
the IR reader to work around it, along the lines of #2816. Nothing in
the tree passes it to `ReadBinaryIr` today, so nothing starts asserting.
Fixes #2534.
Co-authored-by: nishad shabbir <[email protected]>
|
Sir @sbc100 can you please review once again and give feedback if anymore revisions are needed or not for this PR ? |
Summary
ReadBinaryInterpis only used withstop_on_first_error=true.Follow-up to #2812 / #2747 ( @sbc100 ) .
Test plan
stop_on_first_error=falsehits the assertwabt-unittests(135 passed)