[PATCH] D46457: [asan] Add a magic shadow value for shadw gap
Walter Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 16:39:51 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT332557: [asan] Add a magic shadow value for shadw gap (authored by waltl, committed by ).
Herald added a subscriber: Sanitizers.
Changed prior to commit:
https://reviews.llvm.org/D46457?vs=145473&id=147214#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D46457
Files:
lib/asan/asan_errors.cc
lib/asan/asan_internal.h
Index: lib/asan/asan_errors.cc
===================================================================
--- lib/asan/asan_errors.cc
+++ lib/asan/asan_errors.cc
@@ -514,6 +514,7 @@
PrintShadowByte(str, " ASan internal: ", kAsanInternalHeapMagic);
PrintShadowByte(str, " Left alloca redzone: ", kAsanAllocaLeftMagic);
PrintShadowByte(str, " Right alloca redzone: ", kAsanAllocaRightMagic);
+ PrintShadowByte(str, " Shadow gap: ", kAsanShadowGap);
}
static void PrintShadowBytes(InternalScopedString *str, const char *before,
Index: lib/asan/asan_internal.h
===================================================================
--- lib/asan/asan_internal.h
+++ lib/asan/asan_internal.h
@@ -147,6 +147,9 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46457.147214.patch
Type: text/x-patch
Size: 1117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/b2056fa5/attachment.bin>
More information about the llvm-commits
mailing list