[libc-commits] [libc] [libc] disable asan for LlvmLibcStackChkFail.Smash (PR #75966)
via libc-commits
libc-commits at lists.llvm.org
Tue Dec 19 12:37:07 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Nick Desaulniers (nickdesaulniers)
<details>
<summary>Changes</summary>
Otherwise for ASAN configured runs of the test, the test will fail due to the
sanitizer rather than via SIGABRT.
---
Full diff: https://github.com/llvm/llvm-project/pull/75966.diff
1 Files Affected:
- (modified) libc/test/src/compiler/stack_chk_guard_test.cpp (+1-1)
``````````diff
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);
},
``````````
</details>
https://github.com/llvm/llvm-project/pull/75966
More information about the libc-commits
mailing list