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