[all-commits] [llvm/llvm-project] 4fb7c1: [HWASan] Use hwasan_memalign for aligned new.
Matt Morehouse via All-commits
all-commits at lists.llvm.org
Mon Feb 7 13:10:48 PST 2022
Author: Matt Morehouse <mascasa at google.com>
Date: 2022-02-07 (Mon, 07 Feb 2022)
[HWASan] Use hwasan_memalign for aligned new.
Aligned new does not require size to be a multiple of alignment, so
memalign is the correct choice instead of aligned_alloc.
Fixes false reports for unaligned sizes.
Reviewed By: eugenis
Differential Revision: https://reviews.llvm.org/D119161
More information about the All-commits