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@winehq.org Reporter: lukebenes@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/
https://bugs.winehq.org/show_bug.cgi?id=37126
Luke lukebenes@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.viva64.com/en/b/ | |0272/
https://bugs.winehq.org/show_bug.cgi?id=37126
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |86c249760d6da8bfc6d0e009fb3 | |a7db50c102307 Status|UNCONFIRMED |RESOLVED CC| |mstefani@redhat.com Resolution|--- |FIXED
--- Comment #1 from Michael Stefaniuc mstefani@redhat.com --- Fix commited.
https://bugs.winehq.org/show_bug.cgi?id=37126
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
https://bugs.winehq.org/show_bug.cgi?id=37126
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.30.
https://bugs.winehq.org/show_bug.cgi?id=37126
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |tools