diff options
author | Kostya Serebryany <kcc@google.com> | 2016-04-23 00:05:24 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-04-23 00:05:24 +0000 |
commit | 3142d42c05df58aec0469c1c42e60752435a041a (patch) | |
tree | dcec8c018a88ad56d9483c808f17597e2049ef35 /lib/sanitizer_common/sanitizer_win.cc | |
parent | b7929de0c627ec83d53e98f60e5d021027cdb396 (diff) |
[sanitizer] add a function MmapNoAccess that mmaps a protected region *somewhere*; use MmapNoAccess in the Allocator when SpaceBeg is not a constant. In this mode the allocator will be a bit more hardened
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_win.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc index 3144056fa..f09028237 100644 --- a/lib/sanitizer_common/sanitizer_win.cc +++ b/lib/sanitizer_common/sanitizer_win.cc @@ -211,6 +211,11 @@ void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { return res; } +void *MmapNoAccess(uptr size) { + // FIXME: unsupported. + return nullptr; +} + bool MprotectNoAccess(uptr addr, uptr size) { DWORD old_protection; return VirtualProtect((LPVOID)addr, size, PAGE_NOACCESS, &old_protection); |