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

Louis Dionne via cfe-commits cfe-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
----------------
ldionne wrote:

```suggestion
(such as std::vector) where the library developers have added calls into the
```

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


More information about the cfe-commits mailing list