[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:51:03 PDT 2025


================
@@ -62,6 +62,9 @@ DECLARE_REAL(SIZE_T, strlen, const char *s)
 DECLARE_REAL(SIZE_T, strnlen, const char *s, SIZE_T maxlen)
 DECLARE_REAL(void *, memcpy, void *dest, const void *src, SIZE_T n)
 DECLARE_REAL(void *, memset, void *dest, int c, SIZE_T n)
+#if SANITIZER_MEMSET_EXPLICIT
+DECLARE_REAL(void *, memset_explicit, void *dest, int c, SIZE_T n)
----------------
vitalybuka wrote:

probably not needed?

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


More information about the llvm-commits mailing list