Lines Matching +full:mingw +full:- +full:w64
1 //===-- asan_malloc_win.cpp -----------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // Windows-specific malloc interception.
12 //===----------------------------------------------------------------------===//
25 // pulling in conflicting declarations of these functions. (With mingw-w64,
163 REAL(memset)(((u8 *)new_alloc) + old_size, 0, size - old_size); in _recalloc()
176 // _expand is used in realloc-like functions to resize the buffer if possible. in _expand()
213 if (flags()->windows_hook_rtl_allocators) { in INTERCEPTOR_WINAPI()
228 if (flags()->windows_hook_rtl_allocators) { in INTERCEPTOR_WINAPI()
244 // https://blogs.msdn.microsoft.com/oldnewthing/20120316-00/?p=8083 in INTERCEPTOR_WINAPI()
258 if (flags()->windows_hook_rtl_allocators) { in INTERCEPTOR_WINAPI()
282 if (flags()->windows_hook_rtl_allocators) { in SharedReAlloc()
318 if (old_size == ((size_t)0) - 1) { in SharedReAlloc()
382 REAL(memset)(((u8 *)ptr) + old_size, 0, new_size - old_size); in SharedReAlloc()
422 if (!flags()->windows_hook_rtl_allocators || in INTERCEPTOR_WINAPI()
436 if (!flags()->windows_hook_rtl_allocators || in INTERCEPTOR_WINAPI()
450 if (!flags()->windows_hook_rtl_allocators || in INTERCEPTOR_WINAPI()
459 // https://blogs.msdn.microsoft.com/oldnewthing/20120316-00/?p=8083 in INTERCEPTOR_WINAPI()
472 if (!flags()->windows_hook_rtl_allocators) in INTERCEPTOR_WINAPI()
510 if (flags()->windows_hook_rtl_allocators) { in ReplaceSystemMalloc()
530 "ucrtbase.dll", "api-ms-win-core-heap-l1-1-0.dll", func)) { \ in ReplaceSystemMalloc()
540 // enable cross-module inlining. This means our _malloc_base hook won't catch in ReplaceSystemMalloc()
542 // ucrtbase.dll so that all attempts to use the lower-level win32 heap in ReplaceSystemMalloc()