From bbf30457a5c653f2d99caae7c755fdaab1a2bdef Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 10 Dec 2024 16:13:09 -0800 Subject: [PATCH] Revert "[sanitizer] Remove -hwasan-use-after-scope=1" Accidentally deleted additional flag. This reverts commit 7f5a9dc23d64896bbff0e0a96567eb9e1871f274. --- zorg/buildbot/builders/sanitizers/buildbot_functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/zorg/buildbot/builders/sanitizers/buildbot_functions.sh b/zorg/buildbot/builders/sanitizers/buildbot_functions.sh index 0a3828fb..2184a619 100755 --- a/zorg/buildbot/builders/sanitizers/buildbot_functions.sh +++ b/zorg/buildbot/builders/sanitizers/buildbot_functions.sh @@ -268,6 +268,7 @@ function build_stage2 { export HWASAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}" export HWASAN_OPTIONS="abort_on_error=1" llvm_use_sanitizer="HWAddress" + fsanitize_flag="-fsanitize=hwaddress -mllvm -hwasan-use-after-scope=1" # FIXME: Support globals with DSO https://github.com/llvm/llvm-project/issues/57206 cmake_stage2_common_options+=" -DLLVM_ENABLE_PLUGINS=OFF" elif [ "$sanitizer_name" == "ubsan" ]; then