https://bugs.winehq.org/show_bug.cgi?id=37556
Bug ID: 37556
Summary: String compare functions with only one length argument
can lead to page faults.
Product: Wine
Version: 1.7.31
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: sebastian(a)fds-team.de
Distribution: ---
This issue was discovered with Adobe Flash, but is not limited to this single
application. Moreover there are much more ways to trigger this issue than just
the way described below.
Important parts of the stacktrace:
--- snip ---
Unhandled exception: page fault on read access to 0x077ca000 in 32-bit code
(0xf7563773).
[...]
Backtrace:
=>0 0xf7563773 real_length+0x1f(str=".SOL", len=0xf) [libs/wine/sortkey.c:329]
in libwine.so.1 (0x0093cf98)
1 0xf7563791 wine_compare_string+0x10(flags=0x1, str1=".SOL", len1=0xf,
str2="\\?\GLOBALROOT\", len2=0xf) [libs/wine/sortkey.c:338] in libwine.so.1
(0x0093cfb8)
2 0x7b84f65f CompareStringEx+0x1f0(locale=..., flags=..., str1=..., len1=...,
str2=..., len2=..., version=..., reserved=..., lParam=...)
[dlls/kernel32/locale.c:3312] in kernel32 (0x0093d028)
3 0x7b84f45f CompareStringW+0x3a(lcid=..., flags=..., str1=..., len1=...,
str2=..., len2=...) [dlls/kernel32/locale.c:3271] in kernel32 (0x0093d078)
4 0x7dd949a3 StrCmpNIW+0x9f(lpszStr=..., lpszComp=..., iLen=...)
[dlls/shlwapi/string.c:418] in shlwapi (0x0093d0d8)
[...]
0xf7563773 real_length+0x1f [libs/wine/sortkey.c:329] in libwine.so.1: movzwl
0x0(%eax),%eax
329 while (len && !str[len - 1]) len--;
--- snip ---
What happens here is that StrCmpNIW is called with two strings.
--- snip ---
INT WINAPI StrCmpNIW(LPCWSTR lpszStr, LPCWSTR lpszComp, int iLen)
{
TRACE("(%s,%s,%i)\n", debugstr_w(lpszStr), debugstr_w(lpszComp), iLen);
return CompareStringW(GetThreadLocale(), NORM_IGNORECASE, lpszStr, iLen,
lpszComp, iLen) - CSTR_EQUAL;
}
--- snip --
The exact length of both strings is unknown in this function, so wine passes
"iLen" for both strings to CompareStringW. CompareStringW assumes that memory
regions are valid, and then tries to access them in real_length(..). In this
case however unfortunately one of the strings is very close to a page boundary,
so accessing the whole memory block leads to a page fault.
To fix this issue it is either necessary to:
* Change all places where CompareStringW(..) is called with 'invalid' length
values.
* Add exception handlers to real_length(..).
* Move real_length(..) from the beginning of CompareStringW(..) somewhere to
the end, so that the function aborts on the first non-matching byte.
I am opening this issue as a bug report since it needs further investigation,
and I am not sure yet whats the right way to fix it.
--
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=33988
Bug #: 33988
Summary: Star Wars: The Force Unleashed II - Crashes with a
page fault
Product: Wine
Version: 1.6-rc4
Platform: x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: blocker
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: tomas191191(a)gmail.com
Classification: Unclassified
Created attachment 45159
--> http://bugs.winehq.org/attachment.cgi?id=45159
Program Error Details
This game installs and starts perfectly from Steam (although it requires the
same Virtual Memory fix as its predecessor). When I attempt to start a new
game, it crashes with a page fault. I used "d3dx9_43" when trying to play this
game.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=40222
Bug ID: 40222
Summary: IMalloc(Spy)::Free nullptr
Product: Wine
Version: unspecified
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ole32
Assignee: wine-bugs(a)winehq.org
Reporter: learn0more+wine(a)gmail.com
Distribution: ---
Created attachment 53739
--> https://bugs.winehq.org/attachment.cgi?id=53739
the binary triggering the bug.
Calling IMalloc::Free with a nullptr should not invoke the IMallocSpy.
(IMalloc_fnFree)
Bug encountered in ReactOS (Where the IMallocSpy implementation from wine is
used).
See: https://jira.reactos.org/browse/CORE-10903
Also verified on wine.
Attached binary invokes the invalid behavior on ReactOS and Wine, and not on
Windows.
(Run: `wine atl_apitest.exe CComHeapPtr`)
Patchbot run:
https://testbot.winehq.org/JobDetails.pl?Key=20921
--
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.
https://bugs.winehq.org/show_bug.cgi?id=40204
Bug ID: 40204
Summary: [REGRESSION] Steam stopped working as of wine 1.9.4
Product: Wine
Version: 1.9.4
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lena.stoffler(a)ymail.com
Distribution: ---
Created attachment 53714
--> https://bugs.winehq.org/attachment.cgi?id=53714
Console output (LOG)
As of wine 1.9.4 the steam client stopped working, means won't start anymore.
The installer and updater still works, but the main gui and service is unable
to start.
Games that require the steam client running in the background cannot be played
anymore.
Log attached, clean wineprefix used
32-bit and 64-bit tested, same behaviour
NOTE: in wine 1.9.3 steam works
--
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.
https://bugs.winehq.org/show_bug.cgi?id=40021
Bug ID: 40021
Summary: CTL3D32.DLL seems to be mostly empty
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lahs8353(a)yahoo.com
Distribution: ---
I need CTL3D32.DLL for a scientific program found here:
http://optics.tugraz.at/idea/register.html
I've tried getting it to work on wine (well q4wine to be exact) and I'm having
some issues. I've tried both native and builtin DLLs. I've also tried manually
overwriting the DLL under Windows/System32 with one which I downloaded. The
native DLL reports that CTL3D32.DLL was not installed correctly. The builtin
DLL reports: "wxWindows Fatal Error: Cannot register CTL3D"
People on IRC commented that it appears that CTL3D32.DLL is mostly empty on
wine and should be easily fixable.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=38314
Bug ID: 38314
Summary: Mouse Wheel doesn’t work for JA2 1.13 (it uses
MOUSEHOOKSTRUCTEX)
Product: Wine
Version: 1.7.39
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: notifications+bugs.winehq.org(a)m0a.de
Distribution: ---
The mouse wheel does not work at all in JA2 1.13 and by looking at the source
code I think it may be one of several reasons:
1) MOUSEHOOKSTRUCTEX is not properly supported in wine
2) The wheel distance in mouseData does not equal WHEEL_DELTA (if it’s not
exactly WHEEL_DELTA then this code will just drop the event)
3) There is a "bug" in the JA2 1.13 code, which actually works in Windows
3a) If I look at the code I see a comparison with WHEEL_DELTA, this will fail
if the LOWORD of mouseData is not zero. Seems like on windows it’s always zero?
Maybe in wine it’s not zero? Source:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644969%28v=vs.85…
The code:
LRESULT CALLBACK MouseHandler(int Code, WPARAM wParam, LPARAM lParam)
{
[...]
p_mhs = (MOUSEHOOKSTRUCTEX*)lParam;
[...]
if(p_mhs->mouseData==(WHEEL_DELTA<<16)) //up MessageBeep(-1);
QueueEvent(MOUSE_WHEEL_UP, 0, uiParam);
if(p_mhs->mouseData==(-WHEEL_DELTA<<16)) //dn MessageBeep(0x00000040L);
QueueEvent(MOUSE_WHEEL_DOWN, 0, uiParam);
--
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.
https://bugs.winehq.org/show_bug.cgi?id=37288
Bug ID: 37288
Summary: Not implemented feature
System.Drawing.Pen.ResetTransform()
Product: Wine
Version: 1.7.26
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdiplus
Assignee: wine-bugs(a)winehq.org
Reporter: mr_wire(a)mail.ru
Tried to use ComponentOne C1Report library in my .NET application, got the
following error.
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.NotImplementedException: The requested
feature is not implemented [GDI+ status: NotImplemented]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename
unknown>:0
at System.Drawing.Pen.ResetTransform () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Pen:ResetTransform ()
at C1.Win.C1Preview.C1PreviewPane.#YQe () [0x00000] in <filename unknown>:0
at C1.Win.C1Preview.C1PreviewPane.#kPe () [0x00000] in <filename unknown>:0
at C1.Win.C1Preview.C1PreviewPane.Init () [0x00000] in <filename unknown>:0
at C1.Win.C1Preview.C1PreviewPane..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) C1.Win.C1Preview.C1PreviewPane:.ctor
()
at C1.Win.C1Preview.C1PrintPreviewControl.Init () [0x00000] in <filename
unknown>:0
at C1.Win.C1Preview.C1PrintPreviewControl..ctor () [0x00000] in <filename
unknown>:0
at (wrapper remoting-invoke-with-check)
C1.Win.C1Preview.C1PrintPreviewControl:.ctor ()
at C1.Win.C1Preview.C1PrintPreviewDialog.InitializeComponent () [0x00000] in
<filename unknown>:0
at C1.Win.C1Preview.C1PrintPreviewDialog..ctor () [0x00000] in <filename
unknown>:0
at (wrapper remoting-invoke-with-check)
C1.Win.C1Preview.C1PrintPreviewDialog:.ctor ()
[skipped lines]
--
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.
https://bugs.winehq.org/show_bug.cgi?id=39908
Bug ID: 39908
Summary: SuperTux 0.3.5a crashes on startup, needs
msvcr120.dll.strtof
Product: Wine
Version: 1.9.0
Hardware: x86
URL: https://github.com/SuperTux/supertux/releases/download
/v0.3.5a/supertux-0.3.5a-win32-setup.exe
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: msvcrt
Assignee: wine-bugs(a)winehq.org
Reporter: bernhardu(a)vr-web.de
Distribution: Debian
wine: Call from 0x7b83a2bc to unimplemented function msvcr120.dll.strtof,
aborting
Moving this issue to its own bug.
Was before part of https://bugs.winehq.org/show_bug.cgi?id=39034 .
--
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.
https://bugs.winehq.org/show_bug.cgi?id=37115
Bug ID: 37115
Summary: Calling ReadFile from WINBASEAPI (WinBase.h) with zero
read length causes hang
Product: Wine
Version: unspecified
Hardware: x86
OS: Mac OS X
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: robw(a)sagatech.ca
Our software connects to a serial device using USB-serial adapters. In the
process of attempting to create a wrapper for use on OSx, I discovered a hang
when I attempted to connect to the device under Wine that does not occur under
Windows.
I have tracked it down to the WINBASEAPI ReadFile. Under Windows, if a zero
value is passed as the length to read, it handles and returns zero. Under Wine,
it causes a "black box" (meaning I can't trace it) hang.
I have worked around this in my code by including a return on zero value for
the length, however believe it may be responsible for other serial issues I
have seen in researching this problem.
--
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.