-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated documentation and organisation
- Loading branch information
1 parent
2f5ae13
commit a5a29ff
Showing
5 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Fuzzing | ||
|
||
Uses [cargo-afl](https://crates.io/crates/cargo-afl) for [fuzz testing](https://en.wikipedia.org/wiki/Fuzzing). Note that this only works on Linux. | ||
|
||
From root directory | ||
``` | ||
cargo-afl afl system-config | ||
cargo afl build --release -p rustyms-fuzz | ||
cargo afl fuzz -i fuzz/in_pro_forma -o out_pro_forma target/release/pro_forma | ||
``` | ||
Several fuzz targets are defined: `pro_forma`, `sloppy_pro_forma`, and `peaks`. The two peptide targets share the `in_pro_forma` directory with input examples. The peaks target has `in_peaks` as directory of input examples. | ||
|
||
After running the fuzzer the following commands can be used to easily save all crashes into a single file. | ||
``` | ||
open out_pro_forma/default/crashes/* | save crashes.txt -f (nushell) | ||
cat out_pro_forma/default/crashes/* >> crashes.txt (bash) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters