Skip to content

Commit

Permalink
mainline.sh: enable fuzzing instrumentation with build
Browse files Browse the repository at this point in the history
This makes it easier to debug crashes.
  • Loading branch information
elopez committed Nov 2, 2022
1 parent dd7905a commit e746887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e746887

Please sign in to comment.