[hwasan] simplify the realloc implementation: always allocate/deallocate on realloc...
authorKostya Serebryany <kcc@google.com>
Wed, 29 Aug 2018 21:28:14 +0000 (21:28 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 29 Aug 2018 21:28:14 +0000 (21:28 +0000)
commitfd48b7d5586189173f3d45d0b98952ab59d301cd
treed4479158f18759436165f9d09ad0008e5be70ff9
parente12dcf124bc7562f520055b6dce59382a3511983
[hwasan] simplify the realloc implementation: always allocate/deallocate on realloc. This may slowdown some realloc-heavy code, but at least at this point a want simpler code. Also added a test

llvm-svn: 340973
compiler-rt/lib/hwasan/hwasan_allocator.cc
compiler-rt/lib/hwasan/hwasan_flags.inc
compiler-rt/test/hwasan/TestCases/realloc-test.cc [new file with mode: 0644]