[PATCH] D34656: [msan] Intercept wcscat, wcsncat.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 14:42:30 PDT 2017
vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:6215
+ SIZE_T res = REAL(wcsnlen)(s, n);
+ COMMON_INTERCEPTOR_READ_RANGE(ctx, s, sizeof(wchar_t) * Min(res + 1, n));
+ return res;
----------------
vitalybuka wrote:
> you need to handle strict_string_checks
> Probably new macro COMMON_INTERCEPTOR_READ_WSTRING is needed
Discussed offline. It's not needed here.
https://reviews.llvm.org/D34656
More information about the llvm-commits
mailing list