[Bug 30691] New: excessive operator '&' in GetThemeSysFont(); can probably lead to segfault
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue May 15 17:12:38 CDT 2012
http://bugs.winehq.org/show_bug.cgi?id=30691
Bug #: 30691
Summary: excessive operator '&' in GetThemeSysFont(); can
probably lead to segfault
Product: Wine
Version: 1.5.4
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: uxtheme
AssignedTo: wine-bugs at winehq.org
ReportedBy: mity at morous.org
Classification: Unclassified
In function GetThemeSysFont() in dlls/uxtheme/metric.c, there is this code
(lines 120 - 123):
if(iFontID == TMT_ICONTITLEFONT) {
if(!SystemParametersInfoW(SPI_GETICONTITLELOGFONT, sizeof(LOGFONTW),
&plf, 0))
return HRESULT_FROM_WIN32(GetLastError());
}
However the var. plf is already pointer to LOGFONT, so wrong address is passed
into SystemParametersInfoW(). The '&' should be removed.
--
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