You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonas Oberg a3ca6e98ab Corrected tags, caught by lint checker 2 years ago
..
curl_fuzz_data rtsp: do not call fwrite() with NULL pointer FILE * 2 years ago
Makefile.am Automatic run to add License-Filename and SPDX-License-Identifier to 2 years ago
Makefile.inc Add license headers where possible 2 years ago
README ossfuzz: Move to C++ for curl_fuzzer. 2 years ago
corpus.py Corrected tags, caught by lint checker 2 years ago
curl_fuzzer.cc Automatic run to add License-Filename and SPDX-License-Identifier to 2 years ago
curl_fuzzer.h Automatic run to add License-Filename and SPDX-License-Identifier to 2 years ago
generate_corpus.py Add license headers where possible 2 years ago
read_corpus.py Add license headers where possible 2 years ago
standalone_fuzz_target_runner.cc Automatic run to add License-Filename and SPDX-License-Identifier to 2 years ago
testinput.h Automatic run to add License-Filename and SPDX-License-Identifier to 2 years ago

README

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