Debian Codegraph @

third_party/rust/prost/FUZZING.md

raw
1 # Fuzzing
2
3 Prost ships a few fuzz tests, using both libfuzzer and aflfuzz.
4
5
6 ## afl
7
8 To run the afl fuzz tests, first install cargo-afl:
9
10 cargo install -f afl
11
12 Then build a fuzz target and run afl on it:
13
14 cd fuzz/afl/<target>/
15 cargo afl build --bin fuzz-target
16 cargo afl fuzz -i in -o out target/debug/fuzz-target
17
18 To reproduce a crash:
19
20 cd fuzz/afl/<target>/
21 cargo build --bin reproduce
22 cargo run --bin reproduce -- out/crashes/<crashfile>
23
24
25 ## libfuzzer
26
27 TODO