[PATCH] D51419: Switch syscall(2)/__syscall(2) calls to libc calls on NetBSD

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 28 05:48:26 PDT 2018


devnexen added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_netbsd.cc:106
+        (int (*)(void *a, uptr b, int c))GetRealLibcAddress("mprotect");
+  }
+  return (*real_mprotect)(addr, length, prot);
----------------
Would it need check too ?


Repository:
  rL LLVM

https://reviews.llvm.org/D51419





More information about the llvm-commits mailing list