diff options
author | Etienne Bergeron <etienneb@google.com> | 2017-02-21 16:09:38 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2017-02-21 16:09:38 +0000 |
commit | f9ab05ca2548238f0a8434f4e92d92c887a75f33 (patch) | |
tree | e2c9939e00319f75e63efadd789c202a92e8c1f7 /lib/asan/asan_internal.h | |
parent | 7a9a60c4cca6ee77f7f13810865b9351ecdfdadf (diff) |
[compiler-rt][asan] Add support for desallocation of unhandled pointers
Summary: On windows 10, the ucrt DLL is performing allocations before the function hooking and there are multiple allocations not handled by Asan. When a free occur at the end of the process, asan is reporting desallocations not malloc-ed.
Reviewers: rnk, kcc
Reviewed By: rnk, kcc
Subscribers: kcc, llvm-commits, kubamracek, chrisha, dberris
Differential Revision: https://reviews.llvm.org/D25946
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@295730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r-- | lib/asan/asan_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h index ad516d95f..3b7069524 100644 --- a/lib/asan/asan_internal.h +++ b/lib/asan/asan_internal.h @@ -64,6 +64,9 @@ void AsanInitFromRtl(); // asan_win.cc void InitializePlatformExceptionHandlers(); +// Returns whether an address is a valid allocated system heap block. +// 'addr' must point to the beginning of the block. +bool IsSystemHeapAddress(uptr addr); // asan_rtl.cc void NORETURN ShowStatsAndAbort(); |