PVS-StudioWarnings

PVS-Studio warning V536 for Miranda IM

Nov 27th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. int CLUIFrameOnModulesLoad(WPARAM wParam,LPARAM lParam)
  2. {
  3.   /* HOOK */
  4.   CLUIFramesLoadMainMenu();
  5.   CLUIFramesCreateMenuForFrame(
  6.     -1,-1,000010000,MS_CLIST_ADDCONTEXTFRAMEMENUITEM);
  7.   return 0;
  8. }
  9.  
  10. I have considerable reasons to suspect that there should be the decimal number 10000 instead of octal number 000010000.
  11.  
  12. This suspicious code was found in Miranda IM project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V536 Be advised that the utilized constant value is represented by an octal form. Oct: 000010000, Dec: 4096.  clist_modern  modern_cluiframes.cpp  4029
  15.  
  16. PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment