[libcxx-commits] [libcxx] [llvm] [libcxx] Remove ASan container overflow checks for SSO strings (PR #194208)

Vitaly Buka via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 4 14:49:12 PDT 2026


================
@@ -1005,7 +986,7 @@ public:
 #    else
       _NOEXCEPT
 #    endif
-      // Turning off ASan instrumentation for variable initialization with _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS
+      // Turning off ASan instrumentation for variable initialization with a no_sanitize("address") attribute
       // does not work consistently during initialization of __r_, so we instead unpoison __str's memory manually first.
       // __str's memory needs to be unpoisoned only in the case where it's a short string.
       : __rep_([](basic_string& __s) -> decltype(__s.__rep_)&& {
----------------
vitalybuka wrote:

this lamda as well

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


More information about the libcxx-commits mailing list