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 11970 Build 11970: arc lint + arc unit
Event Timeline
| llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
|---|---|---|
| 524 | Please don't use constants in the code. | |
| llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
|---|---|---|
| 293 | No idea. Looks strange. Check code history? | |
| llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
|---|---|---|
| 524 | 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