summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-12-02 19:26:31 +0100
committerKurt Roeckx <kurt@roeckx.be>2016-12-03 00:14:15 +0100
commit0282aeb690d63fab73a07191b63300a2fe30d212 (patch)
treec8c39f905819ea27f1a4cffd8f8eaae0fc41f766
parent1b6a77a1a0e524492bf26495c19b728730e6b585 (diff)
Move libfuzzer sanitizer options to README
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
-rwxr-xr-xConfigure4
-rw-r--r--fuzz/README.md3
2 files changed, 2 insertions, 5 deletions
diff --git a/Configure b/Configure
index 9d564ba162..45b4175483 100755
--- 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 ";
}
diff --git a/fuzz/README.md b/fuzz/README.md
index d0c30f4461..69c388121b 100644
--- a/fuzz/README.md
+++ b/fuzz/README.md
@@ -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