2017-05-09 14:07:28 -04:00
|
|
|
Fuzz tests
|
|
|
|
==========
|
|
|
|
|
|
|
|
The goal is to add tests for *ALL* protocols supported in libcurl.
|
|
|
|
|
|
|
|
Building the fuzz target
|
|
|
|
========================
|
2017-08-27 10:57:05 -04:00
|
|
|
From the CURL root directory:
|
2017-05-09 14:07:28 -04:00
|
|
|
|
2017-08-27 10:57:05 -04:00
|
|
|
export CC=clang-5.0
|
|
|
|
export CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
|
|
|
|
./configure --disable-shared --enable-debug --enable-maintainer-mode
|
2017-06-15 11:08:59 -04:00
|
|
|
make -sj
|
|
|
|
|
|
|
|
cd tests/fuzz
|
2017-08-27 10:57:05 -04:00
|
|
|
|
|
|
|
(optional) export LIB_FUZZING_ENGINE=<path to libFuzzer.a>
|
|
|
|
|
|
|
|
make check
|