[PATCH] D23631: [asan] Remove "Stack partial redzone" from report

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 16:46:07 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279010: [asan] Remove "Stack partial redzone" from report (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D23631?vs=68451&id=68454#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23631

Files:
  compiler-rt/trunk/lib/asan/asan_descriptions.h
  compiler-rt/trunk/lib/asan/asan_internal.h
  compiler-rt/trunk/lib/asan/asan_report.cc

Index: compiler-rt/trunk/lib/asan/asan_internal.h
===================================================================
--- compiler-rt/trunk/lib/asan/asan_internal.h
+++ compiler-rt/trunk/lib/asan/asan_internal.h
@@ -137,7 +137,6 @@
 const int kAsanStackLeftRedzoneMagic = 0xf1;
 const int kAsanStackMidRedzoneMagic = 0xf2;
 const int kAsanStackRightRedzoneMagic = 0xf3;
-const int kAsanStackPartialRedzoneMagic = 0xf4;
 const int kAsanStackAfterReturnMagic = 0xf5;
 const int kAsanInitializationOrderMagic = 0xf6;
 const int kAsanUserPoisonedMemoryMagic = 0xf7;
Index: compiler-rt/trunk/lib/asan/asan_report.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc
+++ compiler-rt/trunk/lib/asan/asan_report.cc
@@ -116,8 +116,6 @@
                   kAsanStackMidRedzoneMagic);
   PrintShadowByte(str, "  Stack right redzone:     ",
                   kAsanStackRightRedzoneMagic);
-  PrintShadowByte(str, "  Stack partial redzone:   ",
-                  kAsanStackPartialRedzoneMagic);
   PrintShadowByte(str, "  Stack after return:      ",
                   kAsanStackAfterReturnMagic);
   PrintShadowByte(str, "  Stack use after scope:   ",
@@ -728,7 +726,6 @@
         break;
       case kAsanStackMidRedzoneMagic:
       case kAsanStackRightRedzoneMagic:
-      case kAsanStackPartialRedzoneMagic:
         bug_descr = "stack-buffer-overflow";
         bug_type_score = 25;
         far_from_bounds = AdjacentShadowValuesAreFullyPoisoned(shadow_addr);
Index: compiler-rt/trunk/lib/asan/asan_descriptions.h
===================================================================
--- compiler-rt/trunk/lib/asan/asan_descriptions.h
+++ compiler-rt/trunk/lib/asan/asan_descriptions.h
@@ -49,7 +49,6 @@
       case kAsanStackLeftRedzoneMagic:
       case kAsanStackMidRedzoneMagic:
       case kAsanStackRightRedzoneMagic:
-      case kAsanStackPartialRedzoneMagic:
         return Red();
       case kAsanStackAfterReturnMagic:
         return Magenta();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23631.68454.patch
Type: text/x-patch
Size: 2014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/55221cd2/attachment.bin>


More information about the llvm-commits mailing list