[clang] [compiler-rt] [ASan] Document define to disable container overflow checks at compile time. (PR #163468)

Dan Blackwell via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 21 08:47:01 PDT 2025


================
@@ -514,11 +514,15 @@ ErrorGeneric::ErrorGeneric(u32 tid, uptr pc_, uptr bp_, uptr sp_, uptr addr,
 }
 
 static void PrintContainerOverflowHint() {
-  Printf("HINT: if you don't care about these errors you may set "
-         "ASAN_OPTIONS=detect_container_overflow=0.\n"
-         "If you suspect a false positive see also: "
-         "https://github.com/google/sanitizers/wiki/"
-         "AddressSanitizerContainerOverflow.\n");
+  Printf(
+      "HINT: if you don't care about these errors you may set "
+      "ASAN_OPTIONS=detect_container_overflow=0.\n"
+      "If supported by the container library, pass "
----------------
DanBlackwell wrote:

Maybe prefix this with "Or" (so "Or if supported"). I could see someone unfamiliar thinking that both need setting.

https://github.com/llvm/llvm-project/pull/163468


More information about the cfe-commits mailing list