19 Jun
2024
19 Jun
'24
4:49 p.m.
On Wed Jun 19 16:47:22 2024 +0000, Jinoh Kang wrote:
Sure but Wine's currently linked `atexit` is process-global right? IIUC our DLL crt0 doesn't provide its own module-local atexit. Calling unloaded DLL functions at process exit will UAF. https://learn.microsoft.com/en-us/cpp/c-runtime-library/dllonexit?view=msvc-... looks like a good indicator that Windows does something on DLL detach. I'd say either MinGW is wrong or you didn't find it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5809#note_73757