[HWASAN] Remove GetRequestedSize check from Metadata::IsAllocated
authorKirill Stoimenov <kstoimenov@google.com>
Tue, 7 Feb 2023 00:02:17 +0000 (00:02 +0000)
committerKirill Stoimenov <kstoimenov@google.com>
Tue, 7 Feb 2023 15:51:56 +0000 (15:51 +0000)
commit9de144eee5307363d7b4f1c8c1837c28223aead0
tree6fd81cdc7f6ca6588cb0404b53ad93677e980fea
parent0f827ee0366922c16fe987c75dad459e717b4f6e
[HWASAN] Remove GetRequestedSize check from Metadata::IsAllocated

After D143438 there is no point in this check as the size will never 0. Also this keeps it consistent with ASAN where there is not size check in LsanMetadata::allocated.

Reviewed By: MaskRay, vitalybuka

Differential Revision: https://reviews.llvm.org/D143442
compiler-rt/lib/hwasan/hwasan_allocator.cpp