[PATCH] D27659: [sanitizer] intercept bstring functions
Kuang-che Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 18:58:28 PST 2016
kcwu updated this revision to Diff 81705.
kcwu added a comment.
SANITIZER_INTERCEPT_BZERO is changed as suggestion.
https://reviews.llvm.org/D27659
Files:
lib/sanitizer_common/sanitizer_platform_interceptors.h
Index: lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -274,7 +274,9 @@
#define SANITIZER_INTERCEPT_AEABI_MEM 0
#endif
#define SANITIZER_INTERCEPT___BZERO SI_MAC
-#define SANITIZER_INTERCEPT_BZERO SI_LINUX || SI_FREEBSD || SI_MAC
+// TODO(kuba.brecka): Add SI_MAC when strncpy on Darwin supports bzero
+// interceptors. https://reviews.llvm.org/D27659.
+#define SANITIZER_INTERCEPT_BZERO SI_LINUX || SI_FREEBSD
#define SANITIZER_INTERCEPT_BCOPY SI_LINUX || SI_FREEBSD || SI_MAC
#define SANITIZER_INTERCEPT_BCMP SI_LINUX || SI_FREEBSD || SI_MAC
#define SANITIZER_INTERCEPT_FTIME !SI_FREEBSD && SI_NOT_WINDOWS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27659.81705.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161216/d154f76d/attachment-0001.bin>
More information about the llvm-commits
mailing list