blob: 8b5fcd011ba05cdfaa6be8a5f21d99584365c128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Fuzz tests
==========
The goal is to add tests for *ALL* protocols supported in libcurl.
Building the fuzz target
========================
From the CURL root directory:
export CC=clang-5.0
export CXX=clang++-5.0
export CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
export CXXFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp -stdlib=libc++"
./configure --disable-shared --enable-debug --enable-maintainer-mode
make -sj
cd tests/fuzz
(optional) export LIB_FUZZING_ENGINE=<path to libFuzzer.a>
make check
|