mirror of
https://github.com/curl/curl.git
synced 2026-05-18 10:46:20 +03:00
- Start with the basic code from the ossfuzz project. - Rewrite fuzz corpora to be binary files full of Type-Length-Value data, and write a glue layer in the fuzzing function to convert corpora into CURL options. - Have supporting functions to generate corpora from existing tests - Integrate with Makefile.am
19 lines
472 B
Text
19 lines
472 B
Text
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 CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
|
|
./configure --disable-shared --enable-debug --enable-maintainer-mode
|
|
make -sj
|
|
|
|
cd tests/fuzz
|
|
|
|
(optional) export LIB_FUZZING_ENGINE=<path to libFuzzer.a>
|
|
|
|
make check
|