[PATCH] D44777: Mmap interceptor providing mprotect support
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 23 16:58:48 PDT 2018
vitalybuka added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_malloc_mac.inc:309
+// make sure we are still the first (default) zone.
+void MprotectMallocZones(void *addr, int prot) {
+ if (addr == malloc_zones && prot == PROT_READ) {
----------------
please move this into some cc file. e.g sanitizer_mac.cc
https://reviews.llvm.org/D44777
More information about the llvm-commits
mailing list