The requirement is that shadow memory must be aligned to page
boundaries (4k in this case). Use a closed form equation that always
satisfies this requirement.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
524 ↗ | (On Diff #122137) | Please don't use constants in the code. |
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
293 ↗ | (On Diff #122137) | No idea. Looks strange. Check code history? |
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
524 ↗ | (On Diff #122137) | This isn't quite right: we'd still need a mask, and the shift value in theory may be negative. Please take a look at the updated code. |