https://bugs.winehq.org/show_bug.cgi?id=37126
Bug ID: 37126
Summary: PVS-Studio Error: Printing the result of identical
functions
Product: Wine
Version: 1.7.22
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lukebenes(a)hotmail.com
PVS-Studio identifies Printing the result of identical functions Error,V681.
The language standard does not define an order in which the 'tlb_read_byte'
functions will be called during evaluation of arguments. tlb.c 650
...
printf("\\%2.2x \\%2.2x\n", tlb_read_byte(), tlb_read_byte());
...
According to the C++ language standard, the sequence of computing a function's
actual arguments is not defined. Which function will be called first depends on
the compiler, compilation parameters, etc.
details on the V681 error here: http://www.viva64.com/en/d/0315/
--
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=37123
Bug ID: 37123
Summary: PVS-Studio Error: Double type conversion
Product: Wine
Version: 1.7.22
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lukebenes(a)hotmail.com
PVS-Studio identifies a Double type conversion Error.
The *void pointer is cast to other types twice: first to char*, then to DWORD*,
after which an offset is added. Either the expression lacks parentheses or the
code is excessive. Whether or not there is an error here depends on how much
the programmer wanted to increment the pointer.
V650 Type casting operation is utilized 2 times in succession. Next, the '+'
operation is executed. Probably meant: (T1)((T2)a + b). typelib.c 9147
...
struct WMSFT_SegContents arraydesc_seg;
typedef struct tagWMSFT_SegContents {
DWORD len;
void *data;
} WMSFT_SegContents;
...
DWORD offs = file->arraydesc_seg.len;
DWORD *encoded;
encoded = (DWORD*)((char*)file->arraydesc_seg.data) + offs;//<==
Another similar issue:
V650 Type casting operation is utilized 2 times in succession. Next, the '+'
operation is executed. Probably meant: (T1)((T2)a + b). protocol.c 194
INT WINAPI
EnumProtocolsW(LPINT protocols, LPVOID buffer, LPDWORD buflen)
{
...
unsigned int string_offset;
...
pi[i].lpProtocol = (WCHAR*)(char*)buffer + string_offset;//<==
...
}
details on the V650 error here: http://www.viva64.com/en/d/0269/
--
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=37120
Bug ID: 37120
Summary: PVS-Studio Error: Equivalent branches of if operator
Product: Wine
Version: 1.7.22
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lukebenes(a)hotmail.com
Equivalent branches of if operator
V523 The 'then' statement is equivalent to the 'else' statement. filedlg.c 3302
if(pDIStruct->itemID == liInfos->uSelectedItem)
{
ilItemImage = (HIMAGELIST) SHGetFileInfoW (
(LPCWSTR) tmpFolder->pidlItem, 0, &sfi, sizeof (sfi),
shgfi_flags );
}
else
{
ilItemImage = (HIMAGELIST) SHGetFileInfoW (
(LPCWSTR) tmpFolder->pidlItem, 0, &sfi, sizeof (sfi),
shgfi_flags );
}
This code is either excessive or contains a typo.
V523 The 'then' statement is equivalent to the 'else' statement. genres.c 1130
...
if(win32)
{
put_word(res, 0); /* Reserved */
/* FIXME: The ResType in the NEWHEADER structure should
* contain 14 according to the MS win32 doc. This is
* not the case with the BRC compiler and I really doubt
* the latter. Putting one here is compliant to win16 spec,
* but who knows the true value?
*/
put_word(res, 1); /* ResType */
put_word(res, icog->nicon);
for(ico = icog->iconlist; ico; ico = ico->next)
{
...
}
}
else /* win16 */
{
put_word(res, 0); /* Reserved */
put_word(res, 1); /* ResType */
put_word(res, icog->nicon);
for(ico = icog->iconlist; ico; ico = ico->next)
{
...
}
}
...
One of the repeating branches is commented. Perhaps this is an incomplete
fragment, not an error, but I decided to point it out anyway.
details on the V523 error here: http://www.viva64.com/en/d/0112/
--
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=37119
Bug ID: 37119
Summary: PVS-Studio Error: Cascade of conditional operators
Product: Wine
Version: 1.7.22
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: lukebenes(a)hotmail.com
V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is
a probability of logical error presence. Check lines: 1754, 1765. msi.c 1754
if (!strcmpW( szProperty, INSTALLPROPERTY_LOCALPACKAGEW )) //<==
{
...
}
else if (!strcmpW( szProperty, INSTALLPROPERTY_INSTALLDATEW ))
{
...
}
else
if (!strcmpW( szProperty, INSTALLPROPERTY_LOCALPACKAGEW )) //<==
{
...
}
else if (!strcmpW( szProperty, INSTALLPROPERTY_UNINSTALLABLEW ) ||
!strcmpW( szProperty, INSTALLPROPERTY_PATCHSTATEW ) ||
!strcmpW( szProperty, INSTALLPROPERTY_DISPLAYNAMEW ) ||
!strcmpW( szProperty, INSTALLPROPERTY_MOREINFOURLW ))
{
...
}
else
{
...
}
If identical conditions are checked in a cascade of conditional operators,
those conditions never get control. Perhaps there is a typo in the constant
INSTALLPROPERTY_* passed to this fragment.
details on the V517 error here: http://www.viva64.com/en/d/0106/
--
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=36800
Bug ID: 36800
Summary: XMP failed to start, services.exe has crashed
Product: Wine
Version: 1.7.20
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: penghao(a)linuxdeepin.com
download from:
http://xmp.down.sandai.net/kankan/XMPSetup_4.9.16.2203-www.exe
after install, start XMP from:
~/.wine/drive_c/Program Files/Thunder Network/Xmp/Program/
with:
wine XMP.exe
then the services.exe report crashed.
--
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=36253
Bug ID: 36253
Summary: Add Nvidia gtx 750 support to the device list
Product: Wine
Version: 1.7.17
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: dyvazar(a)numericable.fr
Get that card on my 32 bits system, and hope for it to be recognized and used.
http://www.gigabyte.com/products/product-page.aspx?pid=4947#sp
--
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=36100
Bug ID: 36100
Summary: Civilization III Complete (Steam) crashes if OSMesa
support was compiled in
Product: Wine
Version: 1.7.17
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: gyebro69(a)gmail.com
Created attachment 48286
--> http://bugs.winehq.org/attachment.cgi?id=48286
terminal output
This bug was addressed in http://forum.winehq.org/viewtopic.php?f=8&t=21105
some time ago.
The game starts fine and a new game can be started, but it crashes usually in a
few minutes.
I believe it has something to do with scrolling the map in the game: if you
move the mouse pointer near the edges of the screen the crash occurs in a
matter of seconds.
If I compile Wine without OSMesa support then the crash doesn't occur.
Fedora 20 x86
mesa-libOSMesa-10.1-6.20140305.fc20.i686
Nvidia binary drivers 337.12
X.Org X Server 1.14.4
--
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=11217
Summary: X Error of failed request: BadAlloc
Product: Wine
Version: 0.9.53.
Platform: PC-x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: viehl(a)fzi.de
Created an attachment (id=10295)
--> (http://bugs.winehq.org/attachment.cgi?id=10295)
Crash log
The game Archlord (available free at www.archlordgame.com) installs using wine.
For starting some dlls were missing and were copied an registered to the
necessary location (shdocvw.dll).
Now, the application crashs on startup. A splash screen could be seen for a
split second. The problem is a "BadAlloc" in the X system.
--
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=12346
Summary: Installation second cd
Product: Wine
Version: 0.9.58.
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: tkachenkok(a)gmx.de
Created an attachment (id=11827)
--> (http://bugs.winehq.org/attachment.cgi?id=11827)
console-output of wine
At the installation of the Lingvo 12.0 the second cd is requested. After wine
eject it is possible to eject cd by pushing the eject-button at the cd-rom.
But after insertion and automounting of the second cd it isn't recognized
(pushing retry button in the "insert second cd" dialog does nothing).
--
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=12380
Summary: Microsoft Word Viewer 2003: Cannot associate with *.doc
files
Product: Wine
Version: 0.9.58.
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: bammzilla(a)gabriana.com
To reproduce:
1) Start with a clean .wine profile just to make sure (delete .wine and run
wineprefixcreate)
2) Install Microsoft Office Word Viewer 2003. Installation should succeed
without problems.
3) Create a shortcut in KMenu (in KDE) or Applications menu (in Gnome). The
command should look similar to this:
env WINEPREFIX="/home/bamm/.wine" wine "C:\Program Files\Microsoft
Office\OFFICE11\WORDVIEW.EXE"
depending, of course, on the installation path you selected, and label it
Microsoft Office Word Viewer 2003 (or whatever you please).
Note that this step may be unneccessary because Wine may have already created
this shortcut for you.
4) Associate *.doc files (application/msword) with the Microsoft Office Word
Viewer 2003.
5) Double click on a *.doc file. Word Viewer opens but the document does not
open.
==
Analysis:
It seems the wrong path to the document is sent to Word Viewer. To test this,
replace wordview.exe with a script that displays the full path name.
You can see this problem without actually associating *.doc files with the
viewer. In my desktop you can right-click on a *.doc file, select Open With,
choose Other, then browse to the shortcut you created in Step 3. The result is
the same; Word Viewer opens but the document is not loaded.
--
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.