Build and run AFL fuzz targets
mainFollow these steps to build a specific format's fuzz target and execute the fuzzer using input files from ./in/<format> and outputting results to ./out/<format>.
- Build the target: Use
cargo afl buildspecifying the binary namefuzz_<format>. - Prepare output directory: Create the output directory.
- Run the fuzzer: Use
cargo afl fuzzpointing to the input directory, output directory, and the built binary.
# Build fuzz target
$ cargo afl build --bin fuzz_<format>
# Run afl
$ mkdir out/<format>
$ cargo afl fuzz -i ./in/<format> -o ./out/<format> ./target/debug/fuzz_<format>