[hwasan] make malloc(0) return nullptr, add basic address description for stack addresses
authorKostya Serebryany <kcc@google.com>
Fri, 31 Aug 2018 01:38:00 +0000 (01:38 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 31 Aug 2018 01:38:00 +0000 (01:38 +0000)
commitf8be3fa5b6a69ab5a8cd44260dc5057e2baa4d37
tree030bc528e2103854d18aff910c93c61cbfdc279e
parentb8b8de423d6f07e203f76988d35928f06a6a29e0
[hwasan] make malloc(0) return nullptr, add basic address description for stack addresses

llvm-svn: 341156
compiler-rt/lib/hwasan/hwasan_allocator.cc
compiler-rt/lib/hwasan/hwasan_report.cc
compiler-rt/test/hwasan/TestCases/malloc-test.c [new file with mode: 0644]
compiler-rt/test/hwasan/TestCases/realloc-test.cc
compiler-rt/test/hwasan/TestCases/stack-oob.cc
compiler-rt/test/hwasan/TestCases/stack-uar.cc