Skip to content

msvcrt: Make ioinfo for stdio fds static.

Yuxuan Shui requested to merge yshui/wine:msvcrt-stdioinfo-uaf into master

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 keep the ioinfos for stdin/out/err static.

Merge request reports

Loading