summaryrefslogtreecommitdiff
path: root/fuzz/README.md
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-12-18 09:48:11 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-12-18 09:48:11 +0000
commitf526dc45cfa25705737599dbda4ad21f4d56ed88 (patch)
tree44a72db888e2a9b37724542ad2962f03d01e0fde /fuzz/README.md
parent838c04a7f696b61ae2451058f5bc4c5c4f58f931 (diff)
parent9f45a6d371b699ce5950ecf53ad2c0453ee8b9f3 (diff)
downloadgnutls-f526dc45cfa25705737599dbda4ad21f4d56ed88.tar.gz
Merge branch 'tmp-ext-fuzzer' into 'master'
fuzzer: added fuzzer for gnutls_ext_raw_parse() [ci skip] See merge request gnutls/gnutls!1133
Diffstat (limited to 'fuzz/README.md')
-rw-r--r--fuzz/README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/fuzz/README.md b/fuzz/README.md
index 9b56e6a104..b2766623c7 100644
--- a/fuzz/README.md
+++ b/fuzz/README.md
@@ -34,16 +34,17 @@ me new corpora after 1-2 days.
Use the following commands on top dir:
```
-export CC=clang-6.0
+export CC=clang
export CFLAGS="-O1 -g -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=undefined,integer,nullability -fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
./configure --disable-guile --enable-fuzzer-target --enable-static --disable-doc --disable-gcc-warnings --disable-hardware-acceleration
make clean
make
cd fuzz
-# build and run gnutls_base64_decode_fuzzer
-UBSAN_OPTIONS=print_stacktrace=1 ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer \
- ./run-clang.sh gnutls_base64_decoder_fuzzer
+# build and run gnutls_base64_decode_fuzzer (change ASAN path if not using clang-8)
+export UBSAN_OPTIONS=print_stacktrace=1
+export ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-8/bin/llvm-symbolizer
+./run-clang.sh gnutls_base64_decoder_fuzzer
```