[PATCH] D55031: Add a new interceptors for statvfs1(2) and fstatvfs1(2) from NetBSD

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 13:39:57 PST 2018


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:4275
   COMMON_INTERCEPTOR_ENTER(ctx, fstatvfs, fd, buf);
+  COMMON_INTERCEPTOR_FD_ACCESS(ctx, fd);
   // FIXME: under ASan the call below may write to freed memory and corrupt
----------------
Please check RAW DIFF https://reviews.llvm.org/file/data/x5p222jqqe67lsydfoh3/PHID-FILE-dwwqavhtcbz2oecylp4j/D55031.diff
This DIFF has wrong BASE again.


================
Comment at: test/sanitizer_common/TestCases/NetBSD/statvfs1.cc:45
+int main(void) {
+  test1();
+  test2();
----------------
test_statvfs1
test_fstatvfs1


Repository:
  rL LLVM

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

https://reviews.llvm.org/D55031





More information about the llvm-commits mailing list