Skip to content

Commit

Permalink
docs: run fuzz tests in dev mode & disable sanitizer (#3871)
Browse files Browse the repository at this point in the history
doc: run fuzz tests in dev mode & disable sanitizer
  • Loading branch information
WenyXu authored May 7, 2024
1 parent 1b93a02 commit aa2934b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests-fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cargo fuzz list --fuzz-dir tests-fuzz

2. Run a fuzz target.
```bash
cargo fuzz run fuzz_create_table --fuzz-dir tests-fuzz
cargo fuzz run fuzz_create_table --fuzz-dir tests-fuzz -D -s none
```

## Crash Reproduction
Expand All @@ -47,11 +47,11 @@ echo "Base64" > .crash
Print the `std::fmt::Debug` output for an input.

```bash
cargo fuzz fmt fuzz_target .crash --fuzz-dir tests-fuzz
cargo fuzz fmt fuzz_target .crash --fuzz-dir tests-fuzz -D -s none
```
Rerun the fuzz test with the input.

```bash
cargo fuzz run fuzz_target .crash --fuzz-dir tests-fuzz
cargo fuzz run fuzz_target .crash --fuzz-dir tests-fuzz -D -s none
```
For more details, visit [cargo fuzz](https://rust-fuzz.github.io/book/cargo-fuzz/tutorial.html) or run the command `cargo fuzz --help`.

0 comments on commit aa2934b

Please sign in to comment.