[libc-commits] [libc] [llvm] [libc] Unify and extend no_sanitize attributes for strlen. (PR #161316)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Tue Sep 30 10:30:13 PDT 2025
================
@@ -81,4 +81,14 @@ LIBC_THREAD_MODE_EXTERNAL.
#define LIBC_HAS_VECTOR_TYPE 0
#endif
+#if __has_attribute(no_sanitize)
+// Disable regular and hardware-supported ASan for functions that may
+// intentionally make out-of-bounds access. Disable TSan as well, as it detects
+// out-of-bounds accesses to heap memory.
+#define LIBC_NOSANITIZE_OOB_ACCESS \
----------------
jhuber6 wrote:
I'd prefer `NO_SANITIZE` to match the attribute name.
https://github.com/llvm/llvm-project/pull/161316
More information about the libc-commits
mailing list