Move libfuzzer sanitizer options to README
authorKurt Roeckx <kurt@roeckx.be>
Fri, 2 Dec 2016 18:26:31 +0000 (19:26 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Fri, 2 Dec 2016 23:14:15 +0000 (00:14 +0100)
This is something you might want to change depending on the version to
use, there is no point in us fixing this to something.

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2023

Configure
fuzz/README.md

index 9d564ba..45b4175 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1110,10 +1110,6 @@ if ($disabled{"dynamic-engine"}) {
         $config{dynamic_engines} = 1;
 }
 
-unless ($disabled{"fuzz-libfuzzer"}) {
-    $config{cflags} .= "-fsanitize-coverage=edge,indirect-calls,8bit-counters ";
-}
-
 unless ($disabled{asan}) {
     $config{cflags} .= "-fsanitize=address ";
 }
index d0c30f4..69c3881 100644 (file)
@@ -39,7 +39,8 @@ Configure for fuzzing:
             --with-fuzzer-include=../../svn-work/Fuzzer \
             --with-fuzzer-lib=../../svn-work/Fuzzer/libFuzzer \
             -DPEDANTIC enable-asan enable-ubsan no-shared \
-            -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
+            -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
+           -fsanitize-coverage=edge,indirect-calls,8bit-counters
     $ sudo apt-get install make
     $ LDCMD=clang++ make -j
     $ fuzz/helper.py $FUZZER