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

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 09:17:44 PDT 2025


================
@@ -164,6 +164,19 @@ To summarize: ``-fsanitize-address-use-after-return=<mode>``
   * ``always``: Enables detection of UAR errors in all cases. (reduces code
     size, but not as much as ``never``).
 
+Container Overflow Detection
+----------------------------
+
+AddressSanitizer can detect overflows in containers with custom allocators
+(such as std::vector) where the Library developers have added calls into the
+AddressSanitizer runtime to indicate which memory is poisoned etc.
+
+In environments where not all the process binaries can be recompiled with 
+AddressSanitizer enabled, these checks can cause false positives.
----------------
ldionne wrote:

Can they also cause crashes?

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


More information about the llvm-commits mailing list