Alexandre Julliard pushed to branch master at wine / wine
Commits: ecad3956 by Yuxuan Shui at 2025-07-01T21:47:38+02:00 msvcrt: Don't release io memory during process shutdown.
In kernel32/tests/loader.c, child_process will try to write to stdout after calling LdrShutdownProcess. LdrShutdownProcess calls DLL_PROCESS_DETACH on msvcrt, which calls msvcrt_free_io, which frees the ioinfo blocks. So to prevent use after free in this case, we don't free them during shutdown.
- - - - -
2 changed files:
- dlls/msvcrt/file.c - dlls/msvcrt/main.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/ecad3956367b8203d9458962dd49fbe...