[PATCH] D28039: Replace WRAP in interceptors with memset, memmove and memcpy implementation

Evgeniy Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 18:34:33 PST 2016


eugenis accepted this revision.
eugenis added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/asan/asan_interceptors.cc:247
+
+#define COMMON_INTERCEPTOR_MEMSET ASAN_MEMSET_IMPL(ctx, block, c, size)
+#define COMMON_INTERCEPTOR_MEMMOVE ASAN_MEMCPY_IMPL(ctx, to, from, size)
----------------
COMMON_INTERCEPTOR_MEMMOVE_IMPL


================
Comment at: lib/msan/msan_interceptors.cc:1377
 #undef SANITIZER_INTERCEPT_MEMMOVE
 #undef SANITIZER_INTERCEPT_MEMCPY
 #include "sanitizer_common/sanitizer_common_interceptors.inc"
----------------
now you can remove these undefs and switch both asan and msan to common interceptors, right?


https://reviews.llvm.org/D28039





More information about the llvm-commits mailing list