diff options
author | Kostya Serebryany <kcc@google.com> | 2018-11-17 01:02:09 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2018-11-17 01:02:09 +0000 |
commit | 0e799d92fd334898fa6a21c04fca6297b5b27e19 (patch) | |
tree | 43ebe93f5a807c3b32dbe3d7ec4c7f68552ba671 /compiler-rt/lib/hwasan/hwasan_allocator.cc | |
parent | b3d7092ab8978f523a6e3fe7108690b12a2e497d (diff) | |
download | bcm5719-llvm-0e799d92fd334898fa6a21c04fca6297b5b27e19.tar.gz bcm5719-llvm-0e799d92fd334898fa6a21c04fca6297b5b27e19.zip |
[hwasan] don't check tail magic when in right_align mode (should fix the bot)
llvm-svn: 347121
Diffstat (limited to 'compiler-rt/lib/hwasan/hwasan_allocator.cc')
-rw-r--r-- | compiler-rt/lib/hwasan/hwasan_allocator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_allocator.cc b/compiler-rt/lib/hwasan/hwasan_allocator.cc index e86832ec250..8fd2349d97f 100644 --- a/compiler-rt/lib/hwasan/hwasan_allocator.cc +++ b/compiler-rt/lib/hwasan/hwasan_allocator.cc @@ -217,7 +217,7 @@ void HwasanDeallocate(StackTrace *stack, void *tagged_ptr) { // 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 *>( |