[lsan] realloc: don't deallocate if requested size is too large
authorFangrui Song <i@maskray.me>
Mon, 29 Mar 2021 20:35:10 +0000 (13:35 -0700)
committerFangrui Song <i@maskray.me>
Mon, 29 Mar 2021 20:35:10 +0000 (13:35 -0700)
commit1daa48f005bd477ba8711ecdf91a1f1515f01383
tree8c562605c5661b68285b7cf8f6089b1bc800f141
parent188592ff08ad552427083124cad12eb0ddd798ba
[lsan] realloc: don't deallocate if requested size is too large

This is the behavior required by the standards.

Differential Revision: https://reviews.llvm.org/D99480
compiler-rt/lib/lsan/lsan_allocator.cpp
compiler-rt/test/lsan/TestCases/realloc_too_big.c [new file with mode: 0644]