From f9ab05ca2548238f0a8434f4e92d92c887a75f33 Mon Sep 17 00:00:00 2001 From: Etienne Bergeron Date: Tue, 21 Feb 2017 16:09:38 +0000 Subject: [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 --- lib/asan/asan_mac.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/asan/asan_mac.cc') diff --git a/lib/asan/asan_mac.cc b/lib/asan/asan_mac.cc index 38189a907..3c93b26d9 100644 --- a/lib/asan/asan_mac.cc +++ b/lib/asan/asan_mac.cc @@ -48,6 +48,7 @@ namespace __asan { void InitializePlatformInterceptors() {} void InitializePlatformExceptionHandlers() {} +bool IsSystemHeapAddress (uptr addr) { return false; } // No-op. Mac does not support static linkage anyway. void *AsanDoesNotSupportStaticLinkage() { -- cgit v1.2.3