[asan] Port tests to shadow scale of 5
authorWalter Lee <waltl@google.com>
Thu, 16 Nov 2017 23:28:50 +0000 (23:28 +0000)
committerWalter Lee <waltl@google.com>
Thu, 16 Nov 2017 23:28:50 +0000 (23:28 +0000)
commit00b4931d5d05c5370418bd66f518403fced91878
tree4dc1dc2c839dab4c01e22d1a114c095e073221b3
parent9af3b173c08280760d2cf3317a7cc0de7fbbeb23
[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

llvm-svn: 318470
compiler-rt/test/asan/TestCases/contiguous_container_crash.cc
compiler-rt/test/asan/TestCases/max_redzone.cc
compiler-rt/test/asan/TestCases/memset_test.cc
compiler-rt/test/asan/TestCases/scariness_score_test.cc
compiler-rt/test/asan/TestCases/use-after-delete.cc
compiler-rt/test/asan/TestCases/use-after-free.cc