f3e17f3d5c
A separate, unpublished crate with its own workspace (like fuzz/), because a GlobalAlloc needs unsafe and arcanum keeps forbid(unsafe_code). dealloc scans each freed block for a 32-byte canary. Controls prove it sees an unwiped Vec and the reallocation case; checked by adding a reserve(1) after decryption in open(), which it catches. Heap only: stack copies are out of its reach.
21 lines
743 B
TOML
21 lines
743 B
TOML
[package]
|
|
name = "arcanum-zeroize-probe"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
license = "CPAL-1.0"
|
|
publish = false
|
|
description = "QA A-29: a counting allocator that checks Arcanum's secrets are wiped before their heap memory is freed. Test-only; never a dependency of anything."
|
|
|
|
[dependencies]
|
|
arcanum = { path = ".." }
|
|
zeroize = { version = "1.8", default-features = false, features = ["alloc"] }
|
|
|
|
[dev-dependencies]
|
|
chacha20 = { version = "0.10", default-features = false, features = ["rng"] }
|
|
rand_core = { version = "0.10", default-features = false }
|
|
|
|
# Its own workspace, like fuzz/: the probe needs `unsafe` (a GlobalAlloc), and Arcanum itself
|
|
# keeps `#![forbid(unsafe_code)]`. Nothing depends on this crate.
|
|
[workspace]
|
|
members = ["."]
|