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
An addition with overflow make lightbeam to panic when compiled in debug mode.
$ ./target/debug/debug_lightbeam store_add_overflow_lightbeam.wasm
thread 'main' panicked at 'attempt to add with overflow', XXX/wasmtime/crates/lightbeam/src/backend.rs:2136:68
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
This issue is related to the macro store! when dealing with the i32.store8 opcode:
The text was updated successfully, but these errors were encountered:
pventuzelo
changed the title
[lightbeam] panic during add overflow in backend.rs (compiled in debug)
[lightbeam] panic during add overflow in backend:store macro (compiled in debug)
Dec 23, 2019
pventuzelo
changed the title
[lightbeam] panic during add overflow in backend:store macro (compiled in debug)
[lightbeam] add overflow in debug mode (backend:store:2136)
Jan 17, 2020
$ debug_diff_compile panic_add_overflow_2159.wasm
thread 'main' panicked at 'attempt to add with overflow', wasmtime/crates/lightbeam/src/backend.rs:2159:68
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
pventuzelo
changed the title
[lightbeam] add overflow in debug mode (backend:store:2136)
[lightbeam] add overflow in debug mode (backend:store:2136 & backend:store:2159)
Jan 17, 2020
arkpar
pushed a commit
to paritytech/wasmtime
that referenced
this issue
Mar 4, 2020
Issue description
An addition with overflow make lightbeam to panic when compiled in debug mode.
This issue is related to the macro
store!
when dealing with thei32.store8
opcode:wasmtime/crates/lightbeam/src/backend.rs
Lines 2133 to 2138 in 31472fb
Reproduction
Download:
store_add_overflow_lightbeam.zip
or
wasm2wat store_add_overflow_lightbeam.wasm
:Testing program (need to be compiled in debug mode i.e.
RUSTFLAGS=-g cargo build
):wasmtime commit: 31472fb
The text was updated successfully, but these errors were encountered: