From 42c9459b10a589b23b5862822888b468d9469013 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Wed, 19 Nov 2025 19:34:29 -0800 Subject: [PATCH 1/3] [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 #include 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 #include From 84f69cd59fc6640baa6302b79279d24204fd77c1 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Thu, 20 Nov 2025 09:56:17 -0800 Subject: [PATCH 2/3] 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 #include 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 #include From b1686e005a6caec534643f44b806cafb61fa3c6a Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Thu, 20 Nov 2025 10:38:50 -0800 Subject: [PATCH 3/3] true --- .../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 4b7d3ad06ecad..9e1e4289f0317 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: * +// UNSUPPORTED: true #include #include 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 e1273ca76e8a6..f34fbc9bd7804 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: * +// UNSUPPORTED: true #include #include