[PATCH] D46571: [asan] Fix bug introduced by r331647

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 22:55:46 PDT 2018


waltl created this revision.
waltl added reviewers: vitalybuka, eugenis, alekseyshl.
Herald added a subscriber: kubamracek.

unmap_shadow_on_exit was inadvertently flipped for non-RTEMS.


Repository:
  rL LLVM

https://reviews.llvm.org/D46571

Files:
  compiler-rt/lib/asan/asan_flags.inc


Index: compiler-rt/lib/asan/asan_flags.inc
===================================================================
--- compiler-rt/lib/asan/asan_flags.inc
+++ compiler-rt/lib/asan/asan_flags.inc
@@ -86,7 +86,7 @@
 ASAN_FLAG(bool, check_malloc_usable_size, true,
           "Allows the users to work around the bug in Nvidia drivers prior to "
           "295.*.")
-ASAN_FLAG(bool, unmap_shadow_on_exit, !SANITIZER_RTEMS,
+ASAN_FLAG(bool, unmap_shadow_on_exit, false,
           "If set, explicitly unmaps the (huge) shadow at exit.")
 ASAN_FLAG(bool, protect_shadow_gap, !SANITIZER_RTEMS,
           "If set, mprotect the shadow gap")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46571.145631.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180508/eb216f0b/attachment.bin>


More information about the llvm-commits mailing list