[compiler-rt] [compiler-rt][sanitizer-common] adding C23 memset_explicit interception. (PR #154428)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 17:50:44 PDT 2025


================
@@ -42,6 +42,9 @@ using namespace __tsan;
 
 DECLARE_REAL(void *, memcpy, void *to, const void *from, SIZE_T size)
 DECLARE_REAL(void *, memset, void *block, int c, SIZE_T size)
+#if SANITIZER_MEMSET_EXPLICIT
+DECLARE_REAL(void *, memset_explicit, void *block, int c, SIZE_T size)
----------------
vitalybuka wrote:

why do we need these?

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


More information about the llvm-commits mailing list