[compiler-rt] [scudo] Add hooks to mark the range of realloc (PR #73883)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 20:14:02 PST 2023
================
@@ -163,23 +208,11 @@ INTERFACE WEAK void *SCUDO_PREFIX(pvalloc)(size_t size) {
}
INTERFACE WEAK void *SCUDO_PREFIX(realloc)(void *ptr, size_t size) {
- if (!ptr) {
----------------
ChiaHungDuan wrote:
I was hesitating if we want to do that. My argument is that these two cases are defined in the realloc spec so it's still part of the realloc logic.
For some cases (may not be useful through...), you can tell the differences between deallocations from `free()` and `realloc`.
https://github.com/llvm/llvm-project/pull/73883
More information about the llvm-commits
mailing list