https://bugs.winehq.org/show_bug.cgi?id=29384
--- Comment #40 from Michael Müller michael@fds-team.de --- Hi,
my patch revealed some other bugs in Wine. In some places the memory is directly passed to syscalls resulting in an EFAULT error instead of an exception causing Wine to crash. This is not introduced by my patch but also happens using the PAGE_GUARD protection and the GetTokenInformation function. I can provide some test code if someone is interested, but Sebastian Lackner will send some patches to wine-devel to fix the known problems.
However, there might be still more places in Wine which could be affected by this bug, so we decided to change the patch to require the environmental variable COMPHOLIO_WRITECOPY to be set to 1 in order to enable my changes. We are going to remove this again after we are sure that it will not break further applications.
Regards, Michael