[compiler-rt] [HWASAN]Implement memcmp interceptor in HWASAN (PR #67204)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 16:36:28 PDT 2023
================
@@ -66,7 +66,7 @@
#define SANITIZER_INTERCEPT_MEMCPY 0
#undef SANITIZER_INTERCEPT_MEMCMP
-#define SANITIZER_INTERCEPT_MEMCMP 0
+#define SANITIZER_INTERCEPT_MEMCMP 1
----------------
thurstond wrote:
Please note the comments at the top of the file:
- don't forcibly #define as 1 because it prevents interception being defined elsewhere as conditional (e.g., Fuchsia really doesn't like interceptors)
- corollary: comment out the #define as 0 (instead of deleting it) as a placeholder
https://github.com/llvm/llvm-project/pull/67204
More information about the llvm-commits
mailing list