Skip to content

Commit

Permalink
add note on how to actually run the fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Nov 6, 2022
1 parent 0c3a0f8 commit a7b9a32
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ this directory are [grammar-aware](https://www.fuzzingbook.org/html/Grammars.htm
[Arbitrary](https://docs.rs/arbitrary/latest/arbitrary/)) and coverage-guided. See [common.rs](fuzz/fuzz_targets/common.rs)
for implementation specifics.

You can run any fuzzer you wish with the following command (replacing `your-fuzzer` with a fuzzer availble in
fuzz_targets, e.g. `parser-idempotency`):

```bash
cargo fuzz run -s none your-fuzzer
```

Note that you may wish to use a different sanitizer option (`-s`) according to what kind of issue you're looking for.
Refer to the [cargo-fuzz book](https://rust-fuzz.github.io/book/cargo-fuzz.html) for details on how to select a
sanitizer and other flags.

## Parser Fuzzer

The parser fuzzer, located in [parser-idempotency.rs](fuzz/fuzz_targets/parser-idempotency.rs), identifies
Expand Down

0 comments on commit a7b9a32

Please sign in to comment.