[compiler-rt] r279010 - [asan] Remove "Stack partial redzone" from report

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


Author: vitalybuka
Date: Wed Aug 17 18:38:08 2016
New Revision: 279010

URL: http://llvm.org/viewvc/llvm-project?rev=279010&view=rev
Log:
[asan] Remove "Stack partial redzone" from report

Summary: This value is never used.

Reviewers: kcc, eugenis

Subscribers: llvm-commits, kubabrecka

Differential Revision: https://reviews.llvm.org/D23631

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

Modified: compiler-rt/trunk/lib/asan/asan_descriptions.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_descriptions.h?rev=279010&r1=279009&r2=279010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_descriptions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_descriptions.h Wed Aug 17 18:38:08 2016
@@ -49,7 +49,6 @@ class Decorator : public __sanitizer::Sa
       case kAsanStackLeftRedzoneMagic:
       case kAsanStackMidRedzoneMagic:
       case kAsanStackRightRedzoneMagic:
-      case kAsanStackPartialRedzoneMagic:
         return Red();
       case kAsanStackAfterReturnMagic:
         return Magenta();

Modified: compiler-rt/trunk/lib/asan/asan_internal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_internal.h?rev=279010&r1=279009&r2=279010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_internal.h (original)
+++ compiler-rt/trunk/lib/asan/asan_internal.h Wed Aug 17 18:38:08 2016
@@ -137,7 +137,6 @@ const int kAsanHeapFreeMagic = 0xfd;
 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;

Modified: compiler-rt/trunk/lib/asan/asan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=279010&r1=279009&r2=279010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Wed Aug 17 18:38:08 2016
@@ -116,8 +116,6 @@ static void PrintLegend(InternalScopedSt
                   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 @@ void ReportGenericError(uptr pc, uptr bp
         break;
       case kAsanStackMidRedzoneMagic:
       case kAsanStackRightRedzoneMagic:
-      case kAsanStackPartialRedzoneMagic:
         bug_descr = "stack-buffer-overflow";
         bug_type_score = 25;
         far_from_bounds = AdjacentShadowValuesAreFullyPoisoned(shadow_addr);




More information about the llvm-commits mailing list