[compiler-rt] [HWASAN] Add memset interceptor (PR #71244)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 22:37:01 PST 2023
================
@@ -40,11 +40,17 @@
#define PLATFORM_HAS_DIFFERENT_MEMCPY_AND_MEMMOVE 1
#endif // SANITIZER_APPLE
+#ifndef COMMON_INTERCEPTOR_MEMSET_CHECK_IN_APP_MEM
+#define COMMON_INTERCEPTOR_MEMSET_CHECK_IN_APP_MEM(p) (0)
+#endif
----------------
vitalybuka wrote:
I would slightly prefer we do not expose this into common layer
and just clone COMMON_INTERCEPTOR_MEMSET_IMPL into hwasan and
use
```
if (MemIsApp(UntagAddr(reinterpret_cast<uptr>(p))) &&
common_flags()->intercept_intrin) \
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \
```
https://github.com/llvm/llvm-project/pull/71244
More information about the llvm-commits
mailing list