From 7f91a3d1b6f9dd4111c0a356942bc8f7984bad53 Mon Sep 17 00:00:00 2001 From: Hanno Date: Fri, 16 Aug 2019 11:45:18 +0200 Subject: [PATCH] Add -fno-common to ASAN tests to make sure global buffer overflows are detected. --- expat/qa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/qa.sh b/expat/qa.sh index 50c0c72b..469df58f 100755 --- a/expat/qa.sh +++ b/expat/qa.sh @@ -55,7 +55,7 @@ populate_environment() { case "${QA_SANITIZER}" in address) # http://clang.llvm.org/docs/AddressSanitizer.html - BASE_COMPILE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer" + BASE_COMPILE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer -fno-common" BASE_LINK_FLAGS+=" -g -Wc,-fsanitize=address" # "-Wc," is for libtool ;; memory) -- 2.40.0