[compiler-rt] d917da6 - [HWASAN] Fix test which was failing with tag mismatch due to missing no_sanitize statement
Kirill Stoimenov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 4 12:42:40 PDT 2023
Author: Kirill Stoimenov
Date: 2023-04-04T19:42:27Z
New Revision: d917da66c894fc35e1a9accd9e670a6d558b7bcd
URL: https://github.com/llvm/llvm-project/commit/d917da66c894fc35e1a9accd9e670a6d558b7bcd
DIFF: https://github.com/llvm/llvm-project/commit/d917da66c894fc35e1a9accd9e670a6d558b7bcd.diff
LOG: [HWASAN] Fix test which was failing with tag mismatch due to missing no_sanitize statement
Added:
Modified:
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp b/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
index 22beb8c598255..da11a5886ca9c 100644
--- a/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
+++ b/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
@@ -45,6 +45,7 @@ int main() {
// Otherwise, we need a
diff erent method.
__attribute__((destructor))
__attribute__((no_sanitize_address))
+__attribute__((no_sanitize("hwaddress")))
void ConfirmPointerHasSurvived() {
print_address("Value after LSan: ", 1, *pp);
}
More information about the llvm-commits
mailing list