This is an archive of the discontinued LLVM Phabricator instance.

[asan] Port tests to shadow scale of 5

Authored by waltl on Nov 7 2017, 4:26 PM.



The tests are ported as follows:

Replace hardwired shadow granularity in CHECK statements with regex.

Bump max_redzone parameter to 32.

Bump size parameter of __asan_poison_memory_region to 32.

For "far-from-bounds" heap overflow, make sure overflow is more than
one shadow granularity away.

At large shadow granularity, there is not enough redzone between
stack elements to detect far-from-bounds, so fake out that test.

Diff Detail


Event Timeline

waltl created this revision.Nov 7 2017, 4:26 PM
vitalybuka accepted this revision.Nov 15 2017, 4:32 PM
This revision is now accepted and ready to land.Nov 15 2017, 4:32 PM
This revision was automatically updated to reflect the committed changes.