[compiler-rt] [sanitizer_common][asan] Implement address sanitizer on AIX: interceptors (5/6) (PR #131870)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu May 1 00:39:19 PDT 2025


================
@@ -56,6 +56,7 @@ namespace __asan {
 #  define ASAN_READ_STRING(ctx, s, n) \
     ASAN_READ_STRING_OF_LEN((ctx), (s), internal_strlen(s), (n))
 
+#  if SANITIZER_INTERCEPT_STRCAT || SANITIZER_INTERCEPT_STRCPY
 static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) {
----------------
vitalybuka wrote:

Let's use `[[maybe_unused]]` instead of #if

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


More information about the llvm-commits mailing list