[Bug 40068] Custom assembly program crashes under Wine
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Feb 27 11:20:18 CST 2016
https://bugs.winehq.org/show_bug.cgi?id=40068
--- Comment #14 from Sebastian Lackner <sebastian at fds-team.de> ---
(In reply to Andrew Kennedy from comment #11)
> There is no stack corruption under XP.
It always corrupts the stack, with more or less critical consequences. Michael
Müller spotted what is going wrong:
--- snip ---
FireThread:
[...]
sub ebp,12 ; as 3 local variables
--- snip ---
The register %ebp was never properly initialized, effectively corrupting the
variables of the parent function. Depending on the Windows version, the
registers are initialized a bit different, effectively hiding all the trouble
on Windows XP. Dmitry wrote a patch to "fix" it, which I've added to the
Staging tree.
I can't guarantee that the patch will be accepted though. It is out of the
scope of wine to be 100% bug-compatible with Windows, especially when your
application is clearly doing something which can't work.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list