diff options
Diffstat (limited to 'lib/msan/msan_linux.cc')
-rw-r--r-- | lib/msan/msan_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msan/msan_linux.cc b/lib/msan/msan_linux.cc index 6c185165f..26ba82b77 100644 --- a/lib/msan/msan_linux.cc +++ b/lib/msan/msan_linux.cc @@ -56,7 +56,7 @@ static bool CheckMemoryRangeAvailability(uptr beg, uptr size) { static bool ProtectMemoryRange(uptr beg, uptr size) { if (size > 0) { uptr end = beg + size - 1; - if (!Mprotect(beg, size)) { + if (!MmapNoAccess(beg, size)) { Printf("FATAL: Cannot protect memory range %p - %p.\n", beg, end); return false; } |