gix-bitmap/fuzz/README.md
This directory contains fuzz tests for gix-bitmap using cargo-fuzz.
rustup install nightlycargo install cargo-fuzzewah: exercises EWAH bitmap decoding.cargo +nightly fuzz run ewah -- -max_total_time=60
The artifacts/ewah directory contains minimized reproducer inputs produced by libFuzzer or Google OSS-Fuzz.
The integration test module fuzzed reads every regular file in that directory and runs it through the parser under test. This lets cargo test -p gix-bitmap fuzzed reproduce known fuzz failures without starting a fuzzing session.
When OSS-Fuzz reports a new failure, place the minimized testcase in artifacts/ewah, then run cargo test -p gix-bitmap fuzzed. To confirm it against the original harness, run cargo fuzz run ewah artifacts/ewah/<reproducer> from this directory.