Skip to content

Commit edbd034

Browse files
[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.
1 parent 219355d commit edbd034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/compiler/stack_chk_guard_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ TEST(LlvmLibcStackChkFail, Death) {
1717

1818
TEST(LlvmLibcStackChkFail, Smash) {
1919
EXPECT_DEATH(
20-
[] {
20+
[] [[gnu::no_sanitize]] {
2121
int arr[20];
2222
LIBC_NAMESPACE::memset(arr, 0xAA, 2001);
2323
},

0 commit comments

Comments
 (0)