Skip to content
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

[fix issue #724] replace panic! with return Err() #747

Merged

Conversation

pventuzelo
Copy link
Contributor

@pventuzelo pventuzelo commented Sep 2, 2019

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"

src/bin/wasmer.rs Outdated Show resolved Hide resolved
src/bin/wasmer.rs Outdated Show resolved Hide resolved
pventuzelo and others added 2 commits September 3, 2019 17:06
Co-Authored-By: Syrus Akbary <[email protected]>
Co-Authored-By: Syrus Akbary <[email protected]>
@syrusakbary
Copy link
Member

@pventuzelo there are lint errors on this PR, once the suggestions are merged it should be good to go.

For next times run cargo fmt --all and cargo will autoformat it for you

@pventuzelo
Copy link
Contributor Author

@syrusakbary sorry for the lint error, completely forgot to fmt before pull request, thx.

@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request 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
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request 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 syrusakbary merged commit 80c1359 into wasmerio:master Sep 3, 2019
@pventuzelo pventuzelo deleted the pventuzelo/724-fix-panics-execute-wasm branch December 11, 2019 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants