Skip to content

Commit 1da4b1e

Browse files
author
Dane Springmeyer
committed
enable -fsanitize=cfi
1 parent 2ccd650 commit 1da4b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sanitize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export MSAN_SYMBOLIZER_PATH=$(pwd)/mason_packages/.link/bin/llvm-symbolizer
2929
export UBSAN_OPTIONS=print_stacktrace=1
3030
export LSAN_OPTIONS=suppressions=${SUPPRESSION_FILE}
3131
export ASAN_OPTIONS=detect_leaks=1:symbolize=1:abort_on_error=1:detect_container_overflow=1:check_initialization_order=1:detect_stack_use_after_return=1
32-
export MASON_SANITIZE="-fsanitize=address,undefined,integer,leak -fno-sanitize=vptr,function"
32+
export MASON_SANITIZE="-fsanitize=address,undefined,integer,leak,cfi -flto -fvisibility=hidden -fno-sanitize=vptr,function"
3333
export MASON_SANITIZE_CXXFLAGS="${MASON_SANITIZE} -fno-sanitize=vptr,function -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fno-common"
3434
export MASON_SANITIZE_LDFLAGS="${MASON_SANITIZE}"
3535
# Note: to build without stopping on errors remove the -fno-sanitize-recover=all flag

0 commit comments

Comments
 (0)