forked from OSchip/llvm-project
[hwasan] don't check tail magic when in right_align mode (should fix the bot)
llvm-svn: 347121
This commit is contained in:
parent
b3d7092ab8
commit
0e799d92fd
|
@ -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 *>(
|
||||
|
|
Loading…
Reference in New Issue