File: README.md

package info (click to toggle)
rust-rustls 0.23.31%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,728 kB
  • sloc: sh: 199; python: 181; makefile: 19
file content (26 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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.

```bash
# 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
```

[cargo-fuzz]: https://rust-fuzz.github.io/book/cargo-fuzz.html
[oss-fuzz]: https://google.github.io/oss-fuzz/
[cargo-fuzz setup]: https://rust-fuzz.github.io/book/cargo-fuzz/setup.html