Skip to content

Commit 5d91a59

Browse files
committed
Add comment about disablement not being honored in string
1 parent b29c9dc commit 5d91a59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/string

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ _LIBCPP_PUSH_MACROS
681681
// Since std::string is partially instantiated in the built library, we require that the library
682682
// has been built with ASAN support in order to enable the container checks in std::string.
683683
//
684+
// This also means that if the built library has been compiled with sanitizer checks enabled
685+
// and the user requests for the container checks to be disabled, that request will not be
686+
// honored.
687+
//
684688
// The _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS macro disables AddressSanitizer (ASan) instrumentation
685689
// for a specific function, allowing memory accesses that would normally trigger ASan errors to proceed
686690
// without crashing. This is useful for accessing parts of objects memory, which should not be accessed,

0 commit comments

Comments
 (0)