http://bugs.winehq.org/show_bug.cgi?id=9731
Summary: GdiConvertToDevmodeW trying to copy -32 bytes on memcpy
Product: Wine
Version: 0.9.45.
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: wine-gdi-(printing)
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: myxfce(a)gmail.com
Created an attachment (id=8168)
--> (http://bugs.winehq.org/attachment.cgi?id=8168)
Crash report
I'm having problems running an old Win 3.11 game named Mortuum. Wine crashes
before the game start. After some debugging, I noticed the crash happens in
file gdi32/driver.c on function DEVMODEW * WINAPI GdiConvertToDevmodeW(const
DEVMODEA *dmA).
This function tries to memcpy bytes from the structer dmA to the structure dmW
(that was allocated by a HeapAlloc()). Unfortunately, it tries to copy -32
bytes because dmA->dmSize is 0 bytes and CCHDEVICENAME is 32 bytes. I've
attached a small piece of code that shows where the memcpy is done around line
425 on that file.
...
dmW = HeapAlloc(GetProcessHeap(), 0, dmW_size + dmA->dmDriverExtra);
if (!dmW) return NULL;
MultiByteToWideChar(CP_ACP, 0, (const char*) dmA->dmDeviceName,
CCHDEVICENAME,dmW->dmDeviceName, CCHDEVICENAME);
//===============================CRASH=========================
/* copy slightly more, to avoid long computations */
memcpy(&dmW->dmSpecVersion, &dmA->dmSpecVersion, dmA->dmSize -
CCHDEVICENAME);
//===============================CRASH=========================
if (dmA->dmSize >= (const char *)dmA->dmFormName - (const char *)dmA +
CCHFORMNAME)
{
MultiByteToWideChar(CP_ACP, 0, (const char*) dmA->dmFormName,
CCHFORMNAME,
dmW->dmFormName, CCHFORMNAME);
if (dmA->dmSize > (const char *)&dmA->dmLogPixels - (const char *)dmA)
memcpy(&dmW->dmLogPixels, &dmA->dmLogPixels, dmA->dmSize - ((const
char *)&dmA->dmLogPixels - (const char *)dmA));
}
...
I tried to debug more to look for the root of the problem (why dmA->dmSize is
0) but there were too many calls and I couldn't figure out where the dmA
structure was allocated and popullated.
I've attached the crash report and if you need the game to test, just ask, it's
freeware. Tested on 0.9.44 and 0.9.45.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=6033
--- Comment #85 from Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> 2012-03-28 21:46:05 CDT ---
(In reply to comment #84)
See bug 30057.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=6033
spb.nevill(a)gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |spb.nevill(a)gmail.com
--- Comment #84 from spb.nevill(a)gmail.com 2012-03-28 14:57:39 CDT ---
Unfortunatrly, it does not appear to be fixed for me. The mouse movement is
usually slow, and sometimes the cursor 'jumps' to the right side or to the
bottom. This is most noticeable in Virtual Desktop mode, where I can't even
move a mouse without the cursor jumping back where it was. This affects both
the menus and the actual game. Tested with both Steam and GOG versions of
Fallout2.
Wine 1.4-0ubuntu1
Kubuntu 12.04
Not sure if it is relevant, but I am playing Fo2 on Intel HD 3000 GPU. I am
rear=dy to provide any additional information required.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=10115
Summary: Wine should restore the initial graphics mode if an
application exits abnormally
Product: Wine
Version: CVS/GIT
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-kernel
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: t.artem(a)mailcity.com
Sometimes DirectX applications crash and leave your desktop with a changed
resolution e.g. 640x480. This shouldn't happen - wine should restore the
initial graphics mode if an application exited abnormally.
Right now you have to `xrandr -s 0` or use any other utility.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=7156
Rafal Stanilewicz <washuu(a)eastnews.com.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |washuu(a)eastnews.com.pl
--- Comment #23 from Rafal Stanilewicz <washuu(a)eastnews.com.pl> 2012-03-28 06:39:53 CDT ---
Could someone summarise the state of this bug?
I'm sure someone (even me, although I'm not experienced graphics designer) can
design TTF font file with most needed symbols, and publish it on GPL-compliant
license.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=7007
Rafal Stanilewicz <washuu(a)eastnews.com.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |washuu(a)eastnews.com.pl
--- Comment #11 from Rafal Stanilewicz <washuu(a)eastnews.com.pl> 2012-03-28 06:28:49 CDT ---
Unfortunately, stable version 1.4.0 still has this bug.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=7807
Anastasius Focht <focht(a)gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed by SHA1| |e6611e22fb037a879205f1330d1
| |a3485f9f18705
CC| |focht(a)gmx.net
Component|-unknown |directx-d3d
Version|unspecified |0.9.33.
--- Comment #27 from Anastasius Focht <focht(a)gmx.net> 2012-03-27 16:10:11 CDT ---
Hello,
filling fields ...
Regards
--
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.
http://bugs.winehq.org/show_bug.cgi?id=7807
Bug 7807 depends on bug 22392, which changed state.
Bug 22392 Summary: 3dmark03, 3dmark06 crash on startup when trying to get system info (Wine lacks support for COM dll surrogate, dllhost.exe)
http://bugs.winehq.org/show_bug.cgi?id=22392
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--
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.
http://bugs.winehq.org/show_bug.cgi?id=30259
Bug #: 30259
Summary: StarCraft II doesn't start
Product: Wine
Version: 1.5.0
Platform: x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: felipe.contreras(a)gmail.com
Classification: Unclassified
This is with Arch Linux and ATI radeon driver. Installation seemed to go fine,
and also the update, but it doesn't launch:
err:winediag:wined3d_dll_init The GLSL shader backend has been disabled. You
get to keep all the pieces if it breaks.
fixme:process:GetLogicalProcessorInformation ((nil),0x32dca0): stub
2012/03/25 02:52:06 ../Shared/Shared/SRegCompat/SRegCompat_Win32.cpp(498) :
Assertion failed: *keyname ""
err:ntdll:RtlpWaitForCriticalSection section 0x7dff61e0
"../../../wine/dlls/winex11.drv/x11drv_main.c: X11DRV_CritSection" wait timed
out in thread 0009, blocked by 0025, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7edc88a0
"../../../wine/dlls/user32/user_main.c: user_section" wait timed out in thread
0025, blocked by 0009, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7bcbe900
"../../../wine/dlls/ntdll/loader.c: loader_section" wait timed out in thread
0026, blocked by 0025, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7bcbe900
"../../../wine/dlls/ntdll/loader.c: loader_section" wait timed out in thread
0009, blocked by 0025, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7edc88a0
"../../../wine/dlls/user32/user_main.c: user_section" wait timed out in thread
0025, blocked by 0009, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7bcbe900
"../../../wine/dlls/ntdll/loader.c: loader_section" wait timed out in thread
0026, blocked by 0025, retrying (60 sec)
err:seh:raise_exception Unhandled exception code c0000194 flags 0 addr
0x7bc36f1c
err:ntdll:RtlpWaitForCriticalSection section 0x7bcbe900
"../../../wine/dlls/ntdll/loader.c: loader_section" wait timed out in thread
0009, blocked by 0025, retrying (60 sec)
err:seh:raise_exception Unhandled exception code c0000194 flags 0 addr
0x7bc36f1c
--
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.
http://bugs.winehq.org/show_bug.cgi?id=4122
Nikolas <ybrjkfc(a)yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ybrjkfc(a)yandex.ru
--- Comment #12 from Nikolas <ybrjkfc(a)yandex.ru> 2012-03-26 23:06:34 CDT ---
this bug actual. wine 1.4 Picasa 3.9.0.135.81
--
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.