Expand description
An example crate showing how to safely and performantly zero out all heap allocations in a process.
This crates makes the following changes from common zeroizing alloc implementations:
- Introduce a faster zeroization implementation (original kept behind feature “reference_impl” for perf testing)
- Fix a potential casting bug
- Remove unit tests: although passing locally, they trigger UAF and UB, leading to inconsistency, which we don’t want.
- Used
MIRIFLAGS="-Zmiri-ignore-leaks" cargo +nightly miri test -p op-alloc
- Used
https://rust.godbolt.org was a tool used to partially verify that zeroization will NOT be optimized out at -Copt-level=3
Structs§
- Allocator wrapper that zeros on free