https://bugs.winehq.org/show_bug.cgi?id=48161
--- Comment #19 from Paul Gofman gofmanp@gmail.com --- (In reply to Paul Gofman from comment #18)
Regarding the Ubuntu binary, I've checked the disassembly and could not actually find stack protection code there.
I've now also checked a mingw build binary from Ubuntu build (https://dl.winehq.org/wine-builds/ubuntu/dists/eoan/main/binary-i386/wine-de..., kernelbase.dll), and some stack protection code is actually there (though it is not there in, e. g., ntdll.dll.so which is native gcc built):
712787d0 _PathUnExpandEnvStringsW@12: 712787d0: 55 push %ebp 712787d1: b8 ec 0f 00 00 mov $0xfec,%eax 712787d6: 57 push %edi 712787d7: 56 push %esi 712787d8: 53 push %ebx 712787d9: e8 32 b0 02 00 call 712a3810 <___chkstk_ms>
So maybe the problem that I see with Ubuntu binaries might have something to do with mingw built DLLs, though this could use more investigation of course.