[libcxx-commits] [libcxx] 6f7ca25 - [libc++] Disable SSP in `clear_padding.pass.cpp` (#218130)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 9 09:50:24 PDT 2026
Author: Michał Górny
Date: 2026-09-09T18:50:17+02:00
New Revision: 6f7ca253fc3674856afe665eda40f9856a69e804
URL: https://github.com/llvm/llvm-project/commit/6f7ca253fc3674856afe665eda40f9856a69e804
DIFF: https://github.com/llvm/llvm-project/commit/6f7ca253fc3674856afe665eda40f9856a69e804.diff
LOG: [libc++] Disable SSP in `clear_padding.pass.cpp` (#218130)
Compile `clear_padding.pass.cpp` test `-fno-stack-protector` to fix
crash due to the generated code overflowing the buffer. This is most
likely a bug in clang.
Bug #212002
Fixes a test regression introduced in #76180
CC @huixie90
---------
Signed-off-by: Michał Górny <mgorny at gentoo.org>
Co-authored-by: Nikolas Klauser <nikolasklauser at berlin.de>
Added:
Modified:
libcxx/test/libcxx/atomics/clear_padding.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/atomics/clear_padding.pass.cpp b/libcxx/test/libcxx/atomics/clear_padding.pass.cpp
index 69d4a7f9b694a..6f7cc2ba1d371 100644
--- a/libcxx/test/libcxx/atomics/clear_padding.pass.cpp
+++ b/libcxx/test/libcxx/atomics/clear_padding.pass.cpp
@@ -24,6 +24,10 @@
// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated-volatile -Wno-dynamic-class-memaccess
+// This test crashes with -fstack-protector-strong
+// (see https://llvm.org/PR212002)
+// ADDITIONAL_COMPILE_FLAGS: -fno-stack-protector
+
#include <atomic>
#include <cassert>
#include <cstring>
More information about the libcxx-commits
mailing list