This should keep it consistent with LSAN and ASAN,
Details
Details
- Reviewers
vitalybuka MaskRay - Commits
- rG01176191d2fc: [HWASAN] Modify HwasanAllocate to set the size to 1 if requested size is 0
rGc6ea5b0cd172: [HWASAN] Modify HwasanAllocate to set the size to 1 if requested size is 0
rG914f86949ae4: [HWASAN] Fix Metadata::IsAllocatedMetadata::IsAllocated to return true even if…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
An alternative is to do if (orig_size == 0) orig_size = 1 in HwasanAllocate. asan/lsan do this.
Comment Actions
I know that hwasan x86-64 needs involved setup. Wish that is documented somewhere (e.g. https://github.com/google/sanitizers/wiki) so that interested folks (like I) can play with it :)