From 2987f5c9f7d8de8c99f5437e21ca26979d05ce5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Mon, 26 Sep 2022 19:01:56 +0000 Subject: [PATCH] mainline.sh: enable fuzzing instrumentation with build This makes it easier to debug crashes. --- mainline.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainline.sh b/mainline.sh index a56c4971..6a85622f 100755 --- a/mainline.sh +++ b/mainline.sh @@ -31,8 +31,8 @@ shift $((OPTIND-1)) export CC=clang export CXX=clang++ FUZZ_FLAG="-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" -export CFLAGS="-fsanitize=address" -export CXXFLAGS="-fsanitize=address -stdlib=libstdc++ $FUZZ_FLAG" +export CFLAGS="-fsanitize=address,fuzzer-no-link" +export CXXFLAGS="-fsanitize=address,fuzzer-no-link -stdlib=libstdc++ $FUZZ_FLAG" export CPPFLAGS="$FUZZ_FLAG" export OPENSSLFLAGS="-fno-sanitize=alignment"