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
For asserting that overflow checks are enabled in Rust compiled smart contracts we include the following lines into Cargo.toml files:
[profile.release]
overflow-checks = true
However, when inspecting the compiled Incrementer example found here we can clearly see that it deterministically underflows and overflows when given certain values. E.g. when the current value of a deployed Incrementer contract is -42 and we decrease it by 2^32-1 we receive -41 as result but instead we expect it to trap.
For asserting that overflow checks are enabled in Rust compiled smart contracts we include the following lines into
Cargo.toml
files:However, when inspecting the compiled Incrementer example found here we can clearly see that it deterministically underflows and overflows when given certain values. E.g. when the current value of a deployed Incrementer contract is
-42
and we decrease it by2^32-1
we receive-41
as result but instead we expect it to trap.Thanks to @TriplEight for reporting this bug. 🎉
The text was updated successfully, but these errors were encountered: