diff options
author | Jin Xin Ng <njx@google.com> | 2023-05-22 21:13:46 +0000 |
---|---|---|
committer | Jin Xin Ng <njx@google.com> | 2023-05-23 16:42:07 +0000 |
commit | 90418dc95ec1cd5aeb844d93f055b94759e2c408 (patch) | |
tree | e5f3a061a1550f413051041cc40c4e131bbf53c1 /llvm/lib/IR/Module.cpp | |
parent | da60b9e7dc6b217ecd8f422a71ee3aa4a4022015 (diff) | |
download | llvm-90418dc95ec1cd5aeb844d93f055b94759e2c408.zip llvm-90418dc95ec1cd5aeb844d93f055b94759e2c408.tar.gz llvm-90418dc95ec1cd5aeb844d93f055b94759e2c408.tar.bz2 |
[lsan] Invoke hooks on realloc
Previously lsan would not invoke hooks on reallocations.
An accompanying regression test is included in sanitizer_common.
This change also moves hook calls to a location where subsequent
calls (via an external caller) to __sanitizer_get_allocated_size
via hooks will return a valid size.
This allows a faster version of __sanitizer_get_allocated_size
to be implemented, which can skip checks.
Test to ensure RunFreeHooks' call order will come with
__sanitizer_get_allocated_size_fast
Differential Revision: https://reviews.llvm.org/D151175
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions