summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/hwasan/hwasan_allocator.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2018-11-17 01:02:09 +0000
committerKostya Serebryany <kcc@google.com>2018-11-17 01:02:09 +0000
commit0e799d92fd334898fa6a21c04fca6297b5b27e19 (patch)
tree43ebe93f5a807c3b32dbe3d7ec4c7f68552ba671 /compiler-rt/lib/hwasan/hwasan_allocator.cc
parentb3d7092ab8978f523a6e3fe7108690b12a2e497d (diff)
downloadbcm5719-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.cc2
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 *>(
OpenPOWER on IntegriCloud