[compiler-rt] [ASAN] Disable broken __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ tests on iOS/Android (PR #168821)

Andrew Haberlandt via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 09:56:30 PST 2025


https://github.com/ndrewh updated https://github.com/llvm/llvm-project/pull/168821

>From 42c9459b10a589b23b5862822888b468d9469013 Mon Sep 17 00:00:00 2001
From: Andrew Haberlandt <ahaberlandt at apple.com>
Date: Wed, 19 Nov 2025 19:34:29 -0800
Subject: [PATCH 1/2] [ASAN] Disable broken
 __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ tests on iOS/Android

---
 .../test/asan/TestCases/disable_container_overflow_checks.cpp   | 1 +
 compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
index 680eb252411da..8b1661b990f93 100644
--- a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
+++ b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
@@ -12,6 +12,7 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -O %s -o %t-no-overflow
 // RUN: %run %t-no-overflow 2>&1 | FileCheck --check-prefix=CHECK-NOCRASH %s
 //
+// UNSUPPORTED: ios, android
 
 #include <assert.h>
 #include <stdio.h>
diff --git a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
index 07c143609e94d..2ab9ba8083b73 100644
--- a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
+++ b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
@@ -19,6 +19,8 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ %s -c -o %t-main.o
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -o %t %t-main.o %t-object.o %libdl
 // RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-NO-CONTAINER-OVERFLOW %s
+//
+// UNSUPPORTED: ios, android
 
 #include <assert.h>
 #include <sanitizer/common_interface_defs.h>

>From 84f69cd59fc6640baa6302b79279d24204fd77c1 Mon Sep 17 00:00:00 2001
From: Andrew Haberlandt <ahaberlandt at apple.com>
Date: Thu, 20 Nov 2025 09:56:17 -0800
Subject: [PATCH 2/2] unsupported everywhere

---
 .../test/asan/TestCases/disable_container_overflow_checks.cpp   | 2 +-
 compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
index 8b1661b990f93..4b7d3ad06ecad 100644
--- a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
+++ b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
@@ -12,7 +12,7 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -O %s -o %t-no-overflow
 // RUN: %run %t-no-overflow 2>&1 | FileCheck --check-prefix=CHECK-NOCRASH %s
 //
-// UNSUPPORTED: ios, android
+// UNSUPPORTED: *
 
 #include <assert.h>
 #include <stdio.h>
diff --git a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
index 2ab9ba8083b73..e1273ca76e8a6 100644
--- a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
+++ b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
@@ -20,7 +20,7 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -o %t %t-main.o %t-object.o %libdl
 // RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-NO-CONTAINER-OVERFLOW %s
 //
-// UNSUPPORTED: ios, android
+// UNSUPPORTED: *
 
 #include <assert.h>
 #include <sanitizer/common_interface_defs.h>



More information about the llvm-commits mailing list