Skip to content

Commit c475ea1

Browse files
committed
chore: Add fuzz testing README.md
1 parent 318fecf commit c475ea1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

fuzz/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Fuzz testing with cargo-fuzz (Experimental)
2+
3+
## Setup
4+
5+
Follow the setup instructions in the [cargo-fuzz documentation](https://rust-fuzz.github.io/book/cargo-fuzz/setup.html)
6+
7+
## Running Fuzz Tests
8+
9+
To run the fuzz tests, use the following command:
10+
11+
* for the `extract_public_key_from_der` target:
12+
13+
```bash
14+
cargo +nightly fuzz run extract_public_key_from_der
15+
```
16+
17+
## Limitations
18+
19+
* More fuzz targets need to be added.
20+
* It would be much more efficient to run [structure-aware fuzzing](https://rust-fuzz.github.io/book/cargo-fuzz/structure-aware-fuzzing.html), which requires a custom corpus.
21+
22+
## References
23+
24+
* [https://github.com/rust-fuzz/cargo-fuzz]
25+
* [https://rust-fuzz.github.io/book/cargo-fuzz.html]

0 commit comments

Comments
 (0)