summaryrefslogtreecommitdiff
path: root/tests/fuzz/README
diff options
context:
space:
mode:
authorMax Dymond <cmeister2@gmail.com>2017-08-27 15:57:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-09-01 11:22:51 +0200
commitefeb4a317616b0437a26277945bd300eaffe96d7 (patch)
tree86f46482f6f9a4eb98fcad25eeb06ea0027b01dc /tests/fuzz/README
parent222e65fd783bec974b99345e0d618d4e627304de (diff)
downloadcurl-efeb4a317616b0437a26277945bd300eaffe96d7.tar.gz
ossfuzz: moving towards the ideal integration
- 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
Diffstat (limited to 'tests/fuzz/README')
-rw-r--r--tests/fuzz/README11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/fuzz/README b/tests/fuzz/README
index 459bda46b..cdb69fe82 100644
--- a/tests/fuzz/README
+++ b/tests/fuzz/README
@@ -2,13 +2,18 @@ Fuzz tests
==========
The goal is to add tests for *ALL* protocols supported in libcurl.
-We will need some additional patches in the future, to increase coverage.
Building the fuzz target
========================
+From the CURL root directory:
-CC=clang-5.0 CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp" ./configure --disable-shared --enable-debug --enable-maintainer-mode
+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
-make
+
+(optional) export LIB_FUZZING_ENGINE=<path to libFuzzer.a>
+
+make check