PVS-StudioWarnings

PVS-Studio warning V536 for Miranda IM

Nov 20th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. static const struct _tag_cpltbl
  2. {
  3.   unsigned cp;
  4.   const char* mimecp;
  5. } cptbl[] =
  6. {
  7.   {   037, "IBM037" },  // IBM EBCDIC US-Canada <<<---
  8.   {   437, "IBM437" },  // OEM United States
  9.   {   500, "IBM500" },  // IBM EBCDIC International
  10.   {   708, "ASMO-708" },// Arabic (ASMO 708)
  11.   ...
  12. }
  13.  
  14. This suspicious code was found in Miranda IM project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V536 Be advised that the utilized constant value is represented by an octal form. Oct: 037, Dec: 31. msn msn_mime.cpp 192
  17.  
  18. 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