[PATCH] D31457: [asan] Add strndup/__strndup interceptors if targeting linux.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 12:58:51 PDT 2017
vitalybuka added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:232
+ if (common_flags()->intercept_strndup) { \
+ COMMON_INTERCEPTOR_READ_RANGE(ctx, s, Min(copy_length + 1, size)); \
+ } \
----------------
probably should be COMMON_INTERCEPTOR_READ_STRING(ctx, s, Min(size, copy_length + 1));
https://reviews.llvm.org/D31457
More information about the llvm-commits
mailing list