mirror of https://github.com/ctz/rustls
18f42bba16
``` warning: unused `std::result::Result` that must be used --> fuzzers/persist.rs:14:5 | 14 | T::read(&mut rdr); | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: this `Result` may be an `Err` variant, which should be handled ``` |
||
---|---|---|
.. | ||
corpus | ||
fuzzers | ||
.gitignore | ||
Cargo.toml | ||
README.md |
README.md
Fuzz Testing
Rustls supports fuzz testing using cargo-fuzz. Fuzz tests are automatically run during continuous integration using oss-fuzz. You may also run fuzz tests locally. See the cargo-fuzz setup instructions for requirements.
# List available fuzzing targets.
$ cargo fuzz list
client
deframer
fragment
message
persist
servert
# Run the message fuzz target for a fixed period of time (expressed in seconds).
$ cargo fuzz run message -- -max_total_time=120
# Clean up generated corpus files
git clean --interactive -- ./corpus