Advertisement
PVS-StudioWarnings

PVS-Studio warning V536 for TortoiseGIT

Nov 27th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. static CodeMap map[]=
  2. {
  3.   {037, _T("IBM037")},// IBM EBCDIC US-Canada          <<<---
  4.   {437, _T("IBM437")},// OEM United States
  5.   {500, _T("IBM500")},// IBM EBCDIC International
  6.   ....
  7. };
  8.  
  9. This suspicious code was found in TortoiseGIT project by PVS-Studio static code analyzer.
  10. Warning message is:
  11. V536 Be advised that the utilized constant value is represented by an octal form. Oct: 037, Dec: 31. unicodeutils.cpp 42
  12.  
  13. 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
Advertisement