This is an archive of the discontinued LLVM Phabricator instance.

[asan] Port tests to shadow scale of 5
ClosedPublic

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

Details

Summary

The tests are ported as follows:

contiguous_container_crash.cc
use-after-delete.cc
use-after-free.cc

Replace hardwired shadow granularity in CHECK statements with regex.

max_redzone.cc

Bump max_redzone parameter to 32.

memset_test.cc

Bump size parameter of __asan_poison_memory_region to 32.

scariness_score_test.cc

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

Repository
rL LLVM

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.