[PATCH] D42061: Add new interceptors: strlcpy(3) and strlcat(3)

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 14:40:18 PST 2018


vitalybuka added a comment.

tests?



================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:6489
+  res = REAL(strlcat)(dst, src, size);
+  COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, REAL(strlen)(dst) + 1);
+  return res;
----------------
probably similar as above, but we need to "write" only appended part or we will hide bugs from msan if the beginning of the dst was not initialized.


Repository:
  rL LLVM

https://reviews.llvm.org/D42061





More information about the llvm-commits mailing list