HomePhabricator

[asan] Fix small X86_64 ShadowOffset for non-default shadow scale

Description

[asan] Fix small X86_64 ShadowOffset for non-default shadow scale

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.

Differential Revision: https://reviews.llvm.org/D39471

Details

Committed
waltlNov 16 2017, 9:03 AM
Differential Revision
D39471: [asan] Fix small X86_64 ShadowOffset for non-default shadow scale
Branches
Unknown
Tags
Unknown