[compiler-rt] r279789 - [asan] remove unused kAsanHeapRightRedzoneMagic (NFC)

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 15:49:35 PDT 2016


Author: kcc
Date: Thu Aug 25 17:49:35 2016
New Revision: 279789

URL: http://llvm.org/viewvc/llvm-project?rev=279789&view=rev
Log:
[asan] remove unused kAsanHeapRightRedzoneMagic (NFC)

Modified:
    compiler-rt/trunk/lib/asan/asan_descriptions.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=279789&r1=279788&r2=279789&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_descriptions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_descriptions.h Thu Aug 25 17:49:35 2016
@@ -43,7 +43,6 @@ class Decorator : public __sanitizer::Sa
   const char *ShadowByte(u8 byte) {
     switch (byte) {
       case kAsanHeapLeftRedzoneMagic:
-      case kAsanHeapRightRedzoneMagic:
       case kAsanArrayCookieMagic:
         return Red();
       case kAsanHeapFreeMagic:

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=279789&r1=279788&r2=279789&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Thu Aug 25 17:49:35 2016
@@ -107,8 +107,6 @@ static void PrintLegend(InternalScopedSt
   str->append("\n");
   PrintShadowByte(str, "  Heap left redzone:       ",
                   kAsanHeapLeftRedzoneMagic);
-  PrintShadowByte(str, "  Heap right redzone:      ",
-                  kAsanHeapRightRedzoneMagic);
   PrintShadowByte(str, "  Freed heap region:       ", kAsanHeapFreeMagic);
   PrintShadowByte(str, "  Stack left redzone:      ",
                   kAsanStackLeftRedzoneMagic);
@@ -691,7 +689,6 @@ void ReportGenericError(uptr pc, uptr bp
     int read_after_free_bonus = 0;
     switch (shadow_val) {
       case kAsanHeapLeftRedzoneMagic:
-      case kAsanHeapRightRedzoneMagic:
       case kAsanArrayCookieMagic:
         bug_descr = "heap-buffer-overflow";
         bug_type_score = 10;




More information about the llvm-commits mailing list