[Bug 33307] heap corruption with gcc 4.8.0
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Apr 22 21:38:49 CDT 2013
http://bugs.winehq.org/show_bug.cgi?id=33307
--- Comment #24 from Kirill K. Smirnov <lich at math.spbu.ru> 2013-04-22 21:38:49 CDT ---
I've replaced every memcpy() in kernel32/process.c to memcpy_unaligned() and it
fixed munged paths - I do not get complaints about L"dows\\syste\\syswow64"
anymore. But heap corruption is still present.
Then I began to remove '_unaligned' suffix and see where munged paths show
themselves.
It turns to be a 965 line. This code works:
964: memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) );
965: memcpy_unaligned( buffer + len, default_syswow64W,
sizeof(default_syswow64W) );
966: DIR_SysWow64 = buffer;
and this not:
964: memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) );
965: memcpy( buffer + len, default_syswow64W, sizeof(default_syswow64W)
);
966: DIR_SysWow64 = buffer;
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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