summaryrefslogtreecommitdiff
path: root/lib/asan/asan_internal.h
diff options
context:
space:
mode:
authorWalter Lee <waltl@google.com>2018-05-16 23:36:01 +0000
committerWalter Lee <waltl@google.com>2018-05-16 23:36:01 +0000
commit79ef693a094114ff9062f32c3228d9a481ef8775 (patch)
tree1f254cfce58316a3b85afa7e894cc4ac63d848a5 /lib/asan/asan_internal.h
parente7a38f86feb619a9bcd31871559f6455e21748bf (diff)
downloadcompiler-rt-79ef693a094114ff9062f32c3228d9a481ef8775.tar.gz
[asan] Add a magic shadow value for shadw gap
This gives us something to insert into the shadow gap for systems that don't have memory protection turned on there (i.e. on Myriad). Differential Revision: https://reviews.llvm.org/D46457 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r--lib/asan/asan_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h
index 19133e529..4a4635229 100644
--- a/lib/asan/asan_internal.h
+++ b/lib/asan/asan_internal.h
@@ -147,6 +147,9 @@ const int kAsanArrayCookieMagic = 0xac;
const int kAsanIntraObjectRedzone = 0xbb;
const int kAsanAllocaLeftMagic = 0xca;
const int kAsanAllocaRightMagic = 0xcb;
+// Used to populate the shadow gap for systems without memory
+// protection there (i.e. Myriad).
+const int kAsanShadowGap = 0xcc;
static const uptr kCurrentStackFrameMagic = 0x41B58AB3;
static const uptr kRetiredStackFrameMagic = 0x45E0360E;