aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorChiaHungDuan <chiahungduan@google.com>2023-12-02 06:41:43 +0800
committerGitHub <noreply@github.com>2023-12-01 14:41:43 -0800
commit75867f8e4a9a06df3b2cafe662d13ee78bb7fc67 (patch)
tree93c4691a04e4dabf591abe7796588b85001cd00a /llvm/tools/llvm-objdump/llvm-objdump.cpp
parenta09b88178492dcd372d8a1d5ed8d5dedda651614 (diff)
downloadllvm-75867f8e4a9a06df3b2cafe662d13ee78bb7fc67.zip
llvm-75867f8e4a9a06df3b2cafe662d13ee78bb7fc67.tar.gz
llvm-75867f8e4a9a06df3b2cafe662d13ee78bb7fc67.tar.bz2
[scudo] Fix realloc hooks behavior (#74149)
`realloc` may involve both allocation and deallocation. Given that the reporting the events is not atomic and which may lead the hook user to a false case that the double-use pattern happens, we always report the old pointer is released and report the new allocation afterward (even it's the same pointer). This also fixes that we didn't report the new size when it doesn't need to allocate a new space.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions