john-slop/fuzz/README.md

22 lines
779 B
Markdown

# Fuzzing
The five harnesses exercise configuration layering, complete rule loading,
UTF-8-to-UTF-16 span conversion, replacement planning/application, and hostile
ZIP bytes under deliberately small resource limits.
Install `cargo-fuzz` and run one target from the repository root:
```sh
cargo install cargo-fuzz --locked
cargo fuzz run config-merge
cargo fuzz run rule-loading
cargo fuzz run utf8-span-mapping
cargo fuzz run replacement-planning
cargo fuzz run archive-metadata
```
Checked-in seeds cover a valid partial override, a complete rule catalog,
multibyte/CRLF text, overlapping replacement opportunities, and malformed ZIP
metadata. Crashes and minimized artifacts are local build output and must not be
committed until converted into a reviewed regression test.