diff options
author | Walter Lee <waltl@google.com> | 2018-05-16 23:36:01 +0000 |
---|---|---|
committer | Walter Lee <waltl@google.com> | 2018-05-16 23:36:01 +0000 |
commit | 79ef693a094114ff9062f32c3228d9a481ef8775 (patch) | |
tree | 1f254cfce58316a3b85afa7e894cc4ac63d848a5 /lib/asan/asan_internal.h | |
parent | e7a38f86feb619a9bcd31871559f6455e21748bf (diff) | |
download | compiler-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.h | 3 |
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; |