-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasmer] panic! 'wasm trap occured' triggered in execute_wasm (src/bin/wasmer.rs) #724
Labels
bug
Something isn't working
Comments
pventuzelo
changed the title
[wasmer] panic! 'wasm trap occured' triggered in execute_wasm (sr/bin/wasmer.rs)
[wasmer] panic! 'wasm trap occured' triggered in execute_wasm (src/bin/wasmer.rs)
Aug 26, 2019
TODO: tag with fuzzer-trophy |
After the patch:
|
TODO: merge #747 |
bors bot
added a commit
that referenced
this issue
Sep 3, 2019
747: [fix issue #724] replace panic! with return Err() r=syrusakbary a=pventuzelo related to issue: #724 after the patch: ``` ./target/release/wasmer run reported_issues/panic_wasm_trap_occured_call_indirect.wasm sizeof(UAFME) = 4 execute_wasm: "wasm trap occured: `call_indirect` out-of-bounds" ``` Co-authored-by: Patrick Ventuzelo <[email protected]> Co-authored-by: Patrick Ventuzelo <[email protected]>
bors bot
added a commit
that referenced
this issue
Sep 3, 2019
747: [fix issue #724] replace panic! with return Err() r=syrusakbary a=pventuzelo related to issue: #724 after the patch: ``` ./target/release/wasmer run reported_issues/panic_wasm_trap_occured_call_indirect.wasm sizeof(UAFME) = 4 execute_wasm: "wasm trap occured: `call_indirect` out-of-bounds" ``` Co-authored-by: Patrick Ventuzelo <[email protected]> Co-authored-by: Patrick Ventuzelo <[email protected]>
syrusakbary
added a commit
that referenced
this issue
Sep 3, 2019
…cute-wasm [fix issue #724] replace panic! with return Err()
Good ;) $ wasmer(80c1359c*) » ./target/release/wasmer run reported_issues/panic_wasm_trap_occured_call_indirect.wasm
sizeof(UAFME) = 4
execute_wasm: "wasm trap occured: `call_indirect` out-of-bounds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the bug report!
Describe the bug
panic!
is called (line 679) whenerr
matchRuntimeError::Trap
.This issue is making wasmer to panicked.
wasmer/src/bin/wasmer.rs
Lines 677 to 690 in 854b201
Also, another
panic!
is present line 689.Expected behavior
wasmer
should generate an exception (or forward current ones) and then quit properly.Also, please note that the trap generate by this wasm module is valid, the module has been designed to try an indirect call to an invalid index at runtime.
Status of my environment
wasmer version: commit 854b201
Steps to reproduce
Download
panic_wasm_trap_occured_call_indirect.zip
Actual behavior (release build)
The text was updated successfully, but these errors were encountered: