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

llvm-svn: 347121
This commit is contained in:
Kostya Serebryany 2018-11-17 01:02:09 +00:00
parent b3d7092ab8
commit 0e799d92fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 *>(