d78cbe84
by Bernhard Übelacker at 2024-11-11T10:56:44+01:00
msvcrt: Do not create a separate heap in newer msvcrt versions.
A llvm-mingw built winver.exe with ASan enabled shows below error
when exiting the application.
This seems to be caused by libc++ using register_onexit_function
before ASan has all function hooks in place, therefore allocates
memory with plain calloc function.
On process exit ASan uses in asan_allocator.cpp/Deallocate the
function HeapValidate, which fails if msvcrt does not use the heap
returned by GetProcessHeap().