[libc-commits] [libc] edbd034 - [libc] disable asan for LlvmLibcStackChkFail.Smash (#75966)
via libc-commits
libc-commits at lists.llvm.org
Tue Dec 19 12:39:31 PST 2023
Author: Nick Desaulniers
Date: 2023-12-19T12:39:27-08:00
New Revision: edbd034248bcec94863199de7c7dcfd3347284a9
URL: https://github.com/llvm/llvm-project/commit/edbd034248bcec94863199de7c7dcfd3347284a9
DIFF: https://github.com/llvm/llvm-project/commit/edbd034248bcec94863199de7c7dcfd3347284a9.diff
LOG: [libc] disable asan for LlvmLibcStackChkFail.Smash (#75966)
Otherwise for ASAN configured runs of the test, the test will fail due
to the
sanitizer rather than via SIGABRT.
Added:
Modified:
libc/test/src/compiler/stack_chk_guard_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/compiler/stack_chk_guard_test.cpp b/libc/test/src/compiler/stack_chk_guard_test.cpp
index 84c54ddeccc956..6f1bd73b1faa3b 100644
--- a/libc/test/src/compiler/stack_chk_guard_test.cpp
+++ b/libc/test/src/compiler/stack_chk_guard_test.cpp
@@ -17,7 +17,7 @@ TEST(LlvmLibcStackChkFail, Death) {
TEST(LlvmLibcStackChkFail, Smash) {
EXPECT_DEATH(
- [] {
+ [] [[gnu::no_sanitize]] {
int arr[20];
LIBC_NAMESPACE::memset(arr, 0xAA, 2001);
},
More information about the libc-commits
mailing list