fuzz/README.md
Fuzz testing for IronClaw code paths that depend on the full crate, using cargo-fuzz (libFuzzer).
Note: Safety-specific fuzz targets (sanitizer, validator, leak detector, credential detect) have moved to
crates/ironclaw_safety/fuzz/. See that directory's README for details.
| Target | What it exercises |
|---|---|
fuzz_tool_params | Tool parameter and schema JSON validation |
cargo install cargo-fuzz
rustup install nightly
# Run a specific target (runs until stopped or crash found)
cargo +nightly fuzz run fuzz_tool_params
# Run with a time limit (5 minutes)
cargo +nightly fuzz run fuzz_tool_params -- -max_total_time=300
fuzz/fuzz_targets/fuzz_<name>.rs following the existing pattern[[bin]] entry in fuzz/Cargo.tomlfuzz/corpus/fuzz_<name>/ for seed inputsFor safety-only targets, add them to crates/ironclaw_safety/fuzz/ instead.