Commit d4245043 authored by Tim Rühsen's avatar Tim Rühsen

Amend fuzz/ to clang-6.0

parent 3aa806d8
......@@ -16,15 +16,16 @@ The ./configure runs below are for libidn2.
Use the following commands on top dir:
export CC=clang-5.0
export CFLAGS="-O1 -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 CC=clang-6.0
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"
ASAN_OPTIONS=detect_leaks=0 ./configure --enable-static --disable-doc --disable-gcc-warnings
make clean
make -j$(nproc)
cd fuzz
# build and run fuzzer
./ libidn2_to_ascii_8z_fuzzer
# run libwget_xml_parse_buffer_fuzzer
UBSAN_OPTIONS=print_stacktrace=1 ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer \
./ libidn2_to_ascii_8z_fuzzer
......@@ -39,12 +39,12 @@ fuzzer=$1
workers=$(($(nproc) - 1))
clang-5.0 \
clang-6.0 \
$CFLAGS -Og -g -I../include -I.. \
${fuzzer}.c -o ${fuzzer} \
-Wl,-Bstatic ../lib/.libs/libidn2.a -lFuzzer \
-lunistring \
-Wl,-Bdynamic -lclang-5.0 -lstdc++
-Wl,-Bdynamic -lclang-6.0 -lstdc++
if test -n "$BUILD_ONLY"; then
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment