diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-12-11 11:54:11 +0100 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-12-27 13:39:11 +0100 |
commit | ed135257b28456645a67c58fe8b3287fc34f7cda (patch) | |
tree | ea926c49d46c6ababd8576b95d212b4ccff41f98 /fuzz | |
parent | dd710bde96208e542443b103f0118eca59b4f25a (diff) | |
download | wget-ed135257b28456645a67c58fe8b3287fc34f7cda.tar.gz |
* fuzz/README.md: Update clang instructions
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/README.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fuzz/README.md b/fuzz/README.md index 2358d04e..93b1a183 100644 --- a/fuzz/README.md +++ b/fuzz/README.md @@ -14,10 +14,11 @@ regression testing with top dir 'make check' or 'make check-valgrind'. Use the following commands on top dir: ``` -export CC=clang-6.0 -export CXX=clang++-6.0 +export CC=clang +export CXX=clang++ # address sanitizer: -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" +#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" +export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=undefined -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link" # undefined sanitizer; export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr -fsanitize=fuzzer-no-link" export CXXFLAGS="$CFLAGS -stdlib=libc++" @@ -28,7 +29,7 @@ make -j$(nproc) cd fuzz # run wget_options_fuzzer -UBSAN_OPTIONS=print_stacktrace=1 ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer \ +UBSAN_OPTIONS=print_stacktrace=1 ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer \ ./run-clang.sh wget_options_fuzzer ``` |