Repository: wcampbell0x2a/backhand (language: rust)

Issue:
Enable `overflow-checks` for dist and release profiles
https://doc.rust-lang.org/cargo/reference/profiles.html?highlight=Overflow#overflow-checks

- Check perf
- Check tests


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1bb98474..495e4cdf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,11 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### `backhand`
+- Enable overflow-checks ([#421](https://github.com/wcampbell0x2a/backhand/pull/421))
+
+### `backhand-cli`
+#### unsquashfs 
+- Enable overflow-checks for dist builds ([#421](https://github.com/wcampbell0x2a/backhand/pull/421))
 
 ## [v0.14.1] - 2024-01-13
 ### `backhand`
 #### Changes
-- Fix path to project `README.md` for `crates.io`
+- Fix path to project `README.md` for `crates.io` ([#420](https://github.com/wcampbell0x2a/backhand/pull/420))
 
 ## [v0.14.0] - 2024-01-13
 Major changes were made to the organization of this repo, with the library `backhand` now being separated from
diff --git a/Cargo.toml b/Cargo.toml
index 75da6ba3..229fd74d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,10 +17,13 @@ repository = "https://github.com/wcampbell0x2a/backhand"
 keywords = ["filesystem", "deku", "squashfs", "linux"]
 categories = ["filesystem", "parsing"]
 
+[profile.release]
+overflow-checks = true
+
 # Release(dist) binaries are setup for maximum runtime speed, at the cost of CI time
 [profile.dist]
 inherits = "release"
 codegen-units = 1
 lto = true
 strip = true
-
+overflow-checks = true


Test patch: