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
lightbeam will try to calculate the remainder even if an overflow occurs in the function rem_s.
$ ./debug_diff_compile panic_remainder_overflow_868_2.wasm
thread 'main' panicked at 'attempt to calculate the remainder with overflow', XXX/wasmtime/crates/lightbeam/src/backend.rs:868:56
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
This issue is related to the function rem_s when dealing with the i32.rem_s opcode:
Issue description
lightbeam
will try to calculate the remainder even if an overflow occurs in the functionrem_s
.This issue is related to the function
rem_s
when dealing with thei32.rem_s
opcode:wasmtime/crates/lightbeam/src/backend.rs
Lines 867 to 869 in 420dcd7
I suspect this issue can also occurs in
rem_u
:wasmtime/crates/lightbeam/src/backend.rs
Lines 826 to 829 in 420dcd7
Reproduction
Download
panic_remainder_overflow_868.zip
wasmtime commit: 7890fa6
The text was updated successfully, but these errors were encountered: