Home | History | Annotate | Download | only in src

Lines Matching full:fuzz

0 # Fuzz testing
3 Modern fuzz testers are very effective and we wish to use them to ensure that no silly bugs creep into BoringSSL.
5 We primarily use Clang's [libFuzzer](http://llvm.org/docs/LibFuzzer.html) for fuzz testing and there are a number of fuzz testing functions in `fuzz/`. They are not built by default because they require libFuzzer at build time.
7 In order to build the fuzz tests you will need at least Clang 3.7. Pass `-DFUZZ=1` on the CMake command line to enable building BoringSSL with coverage and AddressSanitizer, and to build the fuzz test binaries. You'll probably need to set the `CC` and `CXX` environment variables too, like this:
13 In order for the fuzz tests to link, the linker needs to find libFuzzer. This is not commonly provided and you may need to download the [Clang source code](http://llvm.org/releases/download.html) and do the following:
26 ./fuzz/cert -max_len=4000 -jobs=32 -workers=32 ../fuzz/cert_corpus/
29 The `max_len` argument is often important because, without it, libFuzzer defaults to limiting all test cases to 64 bytes, which is often insufficient for the formats that we wish to fuzz. The arguments to `jobs` and `workers` should be the number of cores that you wish to dedicate to fuzzing.
31 There are directories in `fuzz/` for each of the fuzzing tests which contain seed files for fuzzing. Some of the seed files were generated manually but many of them are ?interesting? results generated by the fuzzing itself. (Where ?interesting? means that it triggered a previously unknown path in the code.)