[PATCH] D56268: [Sanitizer] Intercept fdevname on FreeBSD

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 7 05:50:17 PST 2019


krytarowski added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:9369
+  char *name = REAL(fdevname_r)(fd, buf, len);
+  if (buf && len > 0) {
+    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, REAL(strlen)(buf) + 1);
----------------
shouldn't we check for `if (name)` ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56268/new/

https://reviews.llvm.org/D56268





More information about the llvm-commits mailing list