HomePhabricator

[asan] Port tests to shadow scale of 5

Description

[asan] Port tests to shadow scale of 5

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.

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

Details

Committed
waltlNov 16 2017, 3:28 PM
Differential Revision
D39773: [asan] Port tests to shadow scale of 5
Parents
rCRT318469: [asan] Add lit feature to indicate compiler_rt's shadow scale value
Branches
Unknown
Tags
Unknown