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 9d564ba1627a274f4be402956105ef81c74081ca..45b41754836a826757d623e5c5371cbdf2571f9c 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 d0c30f4461c8190b313e3f88565ed685d26027c9..69c388121b8c867a821afdb4c811af16d4498e98 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