diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-09-16 11:03:31 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-09-16 11:03:31 +0000 |
commit | effdc7e483708cfa4dc597c21f246c5dbc09daa0 (patch) | |
tree | d24a8dd8d1b4a1ff815ae426f8e82187064010bf /lib/msan/msan.h | |
parent | 1effc056910803fd8213ac940e9d17f3c0160b4b (diff) |
[msan] Fix origin of deallocated memory.
MSan poisons deallocated memory but it used to give it an invalid origin value,
resulting in confusing reports. This change associates deallocation stack trace
with such memory.
Note that MSan does not have quarantine, and use-after-free detection is very
limited.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.h')
-rw-r--r-- | lib/msan/msan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msan/msan.h b/lib/msan/msan.h index 16dfc0cf6..8c24de647 100644 --- a/lib/msan/msan.h +++ b/lib/msan/msan.h @@ -46,7 +46,7 @@ void InitializeInterceptors(); void *MsanReallocate(StackTrace *stack, void *oldp, uptr size, uptr alignment, bool zeroise); -void MsanDeallocate(void *ptr); +void MsanDeallocate(StackTrace *stack, void *ptr); void InstallTrapHandler(); void InstallAtExitHandler(); void ReplaceOperatorsNewAndDelete(); |