Feature Request: Consider activating Rust integer overflow protection in release builds
The Cargo.toml does not enable overflow checks in release builds, meaning that integer underflow or overflow will wrap instead of causing panics.
It looks like the node code uses checked math in most cases but it's safer to do this as a policy in release builds rather than to rely only on catching individual cases, especially as the codebase changes over time.
https://doc.rust-lang.org/cargo/reference/profiles.html#overflow-checks.
Feature Request: Consider activating Rust integer overflow protection in release builds
The Cargo.toml does not enable overflow checks in release builds, meaning that integer underflow or overflow will wrap instead of causing panics.
It looks like the node code uses checked math in most cases but it's safer to do this as a policy in release builds rather than to rely only on catching individual cases, especially as the codebase changes over time.
https://doc.rust-lang.org/cargo/reference/profiles.html#overflow-checks.