diff options
author | Kostya Serebryany <kcc@google.com> | 2016-08-26 00:06:03 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-08-26 00:06:03 +0000 |
commit | e935ff9a6cfde96dabc31a60d010d2d331c31371 (patch) | |
tree | 0d400cc074cffcefe4993b08a1aa6a0dbf732287 /lib/msan/msan_allocator.cc | |
parent | d95894229a58211d3691a8bc9c908ae7f4d59471 (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.cc | 1 |
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; |