From 2d2e1e25cad67a05a5e73269e1780f478f70b0c7 Mon Sep 17 00:00:00 2001 From: Mariusz Borsa Date: Sun, 17 Aug 2025 13:21:14 -0700 Subject: [PATCH] [Sanitizers][Test] XFAIL array cookie tests on arm Poisoning of C++ array redzones is only implemented for x86 CPUs. New arm64 bots are being brought up, where these test fail. Original C++ arrays shadow poisoning change: http://reviews.llvm.org/D4774 rdar://158025391 --- .../test/asan/TestCases/Posix/new_array_cookie_test.cpp | 3 +++ .../test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp index edbdb4016d86e..fa896128cdb72 100644 --- a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_test.cpp @@ -6,6 +6,9 @@ // UNSUPPORTED: ios +// Poisoning C++ array redzones is not implemented on arm +// XFAIL: target=arm{{.*}} + #include #include struct C { diff --git a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp index 335a56757d296..63b1171df0aef 100644 --- a/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/new_array_cookie_uaf_test.cpp @@ -5,6 +5,9 @@ // UNSUPPORTED: ios +// Poisoning C++ array redzones is not implemented on arm +// XFAIL: target=arm{{.*}} + #include #include #include