[compiler-rt] r347121 - [hwasan] don't check tail magic when in right_align mode (should fix the bot)

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 16 17:02:09 PST 2018


Author: kcc
Date: Fri Nov 16 17:02:09 2018
New Revision: 347121

URL: http://llvm.org/viewvc/llvm-project?rev=347121&view=rev
Log:
[hwasan] don't check tail magic when in right_align mode (should fix the bot)

Modified:
    compiler-rt/trunk/lib/hwasan/hwasan_allocator.cc

Modified: compiler-rt/trunk/lib/hwasan/hwasan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_allocator.cc?rev=347121&r1=347120&r2=347121&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan_allocator.cc (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan_allocator.cc Fri Nov 16 17:02:09 2018
@@ -217,7 +217,7 @@ void HwasanDeallocate(StackTrace *stack,
 
   // Check tail magic.
   uptr tagged_size = TaggedSize(orig_size);
-  if (flags()->free_checks_tail_magic && !meta->right_aligned && orig_size) {
+  if (flags()->free_checks_tail_magic && !right_align_mode && orig_size) {
     uptr tail_size = tagged_size - orig_size;
     CHECK_LT(tail_size, kShadowAlignment);
     void *tail_beg = reinterpret_cast<void *>(




More information about the llvm-commits mailing list