ddda8415eb
fuzz/fuzz_targets/signatures.rs: raw bytes into VerifyingKey, Signature,
SigningKey and AppContext; and the input XORed into a valid verifying key,
signature, message, raw ctx, key-binding id/window/time, X-Wing key and
binding signature. Beyond "never panics" it asserts that only the exact
signed bytes verify.
Run on 5a52854 plus this target, Windows 10, nightly 1.102.0
(739adecd4 2026-11-24), libFuzzer + ASan (MSVC 14.44 asan runtime),
corpus and artifacts on D:, 12 seed inputs: 605 s, 38,609 executions,
63 exec/s, 0 crashes, 0 artifacts, coverage 3,549, 122 corpus units.
35 lines
767 B
TOML
35 lines
767 B
TOML
[package]
|
|
name = "arcanum-fuzz"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
license = "CPAL-1.0"
|
|
publish = false
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
arcanum = { path = "..", features = ["hazmat"] }
|
|
# A seeded RNG for the signing fixture (fuzz input never chooses randomness).
|
|
chacha20 = { version = "0.10", default-features = false, features = ["rng"] }
|
|
rand_core = { version = "0.10", default-features = false }
|
|
|
|
# Keep the fuzz crate out of the library's own dependency graph and checks.
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "untrusted_input"
|
|
path = "fuzz_targets/untrusted_input.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "signatures"
|
|
path = "fuzz_targets/signatures.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|