[Bug 36783] valgrind shows two invalid writes in kernel32/tests/thread.c
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Jun 21 20:59:25 CDT 2014
http://bugs.winehq.org/show_bug.cgi?id=36783
Sebastian Lackner <sebastian at fds-team.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sebastian at fds-team.de
--- Comment #1 from Sebastian Lackner <sebastian at fds-team.de> ---
I fear we cannot really fix this. For me the corresponding code looks okay:
--- snip ---
986 /* simulate a call to set_test_val(10) */
987 stack = (int *)ctx.Esp;
988 stack[-1] = 10; // <--
989 stack[-2] = ctx.Eip; // <--
990 ctx.Esp -= 2 * sizeof(int *);
991 ctx.Eip = (DWORD)set_test_val;
--- snip ---
( http://source.winehq.org/source/dlls/kernel32/tests/thread.c#L986 )
The problem is that Valgrind doesn't understand what we're doing here (manually
adjusting the stack pointer and writing values on the stack to simulate a
function call).
--
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