[PATCH] D31457: [asan] Add strndup/__strndup interceptors if targeting linux.

Filipe Cabecinhas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 05:46:36 PDT 2017


filcab added inline comments.


================
Comment at: lib/asan/asan_interceptors.h:77
 # define ASAN_INTERCEPT___STRDUP 1
+# define ASAN_INTERCEPT_STRNDUP 1
+# define ASAN_INTERCEPT___STRNDUP 1
----------------
This one (the plain `strdup`) should be intercepted in all `SANITIZER_POSIX` platforms. And it seems Android might have it: https://android.googlesource.com/platform/bionic/+/donut-release/libc/string/strndup.c
https://android.googlesource.com/platform/bionic/+/android-7.1.1_r28/libc/include/string.h


https://reviews.llvm.org/D31457





More information about the llvm-commits mailing list