summaryrefslogtreecommitdiff
path: root/lib/msan/msan_allocator.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-08-26 00:06:03 +0000
committerKostya Serebryany <kcc@google.com>2016-08-26 00:06:03 +0000
commite935ff9a6cfde96dabc31a60d010d2d331c31371 (patch)
tree0d400cc074cffcefe4993b08a1aa6a0dbf732287 /lib/msan/msan_allocator.cc
parentd95894229a58211d3691a8bc9c908ae7f4d59471 (diff)
[sanitizer] enable random shuffling the memory chunks inside the allocator, under a flag. Set this flag for the scudo allocator, add a test.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@279793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_allocator.cc')
-rw-r--r--lib/msan/msan_allocator.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/msan/msan_allocator.cc b/lib/msan/msan_allocator.cc
index 3d57fba2d..9eb945af5 100644
--- a/lib/msan/msan_allocator.cc
+++ b/lib/msan/msan_allocator.cc
@@ -64,6 +64,7 @@ struct MsanMapUnmapCallback {
static const uptr kMetadataSize = sizeof(Metadata);
typedef DefaultSizeClassMap SizeClassMap;
typedef MsanMapUnmapCallback MapUnmapCallback;
+ static const uptr kFlags = 0;
};
typedef SizeClassAllocator64<AP64> PrimaryAllocator;