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
- Build Status
Buildable 12239 Build 12239: arc lint + arc unit
Event Timeline
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
537–538 | Please don't use constants in the code. |
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
303 | No idea. Looks strange. Check code history? |
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
537–538 | 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. |
@eugenis why do we need 0 here and not just kDefaultShadowScale