Fix hwasan allocator not respecting the requested alignment when it is
higher than a page, but still within primary (i.e. [2048, 65536]).
Details
Details
- Reviewers
pcc hctim cryptoad - Commits
- rG67b950be6d48: [hwasan] Fix allocator alignment.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h | ||
---|---|---|
79–83 | Since we had the discussion, I understand the need to be aligned, but maybe a comment to clarify why for later readers? | |
compiler-rt/lib/sanitizer_common/sanitizer_common.cpp | ||
328 ↗ | (On Diff #262979) | Maybe a safe guard check that align is a power of 2? |
Since we had the discussion, I understand the need to be aligned, but maybe a comment to clarify why for later readers?