www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - More PVS-Studio

reply bearophile <bearophileHUGS lycos.com> writes:
Another post about PVS-Studio static analyzer:

http://www.viva64.com/en/a/0076/

Some of the interesting bugs found this time:

mii->cch = mii->cch;

  if ((This->options && ACO_AUTOSUGGEST) &&
      ((HWND)wParam != This->hwndListBox))

ULONG treg = 0x54 + (dev < 3) ? (dev << 1) : 7;

#define SWAP(a,b,c)  c = a;\
                     a = b;\
                     a = c

Probably the PVS-Studio are willing to let a person here use their software
_for free_ to look for bugs in DMD.

Bye,
bearophile
Sep 06 2011
parent Kagamin <spam here.lot> writes:
bearophile Wrote:

 ULONG treg = 0x54 + (dev < 3) ? (dev << 1) : 7;
Voodoo programmers...
Sep 06 2011