Alexandre Julliard pushed to branch master at wine / wine
Commits: 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().
- - - - -
6 changed files:
- dlls/msvcr100/tests/msvcr100.c - dlls/msvcr110/tests/msvcr110.c - dlls/msvcrt/heap.c - dlls/msvcrt/tests/heap.c - dlls/ucrtbase/tests/misc.c - include/msvcrt/malloc.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/d78cbe84e5f0000c6523c4b997de476...