PVS-StudioWarnings

PVS-Studio warning V576 for Virtualdub

Nov 18th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. sint64 rva;
  2.  
  3. void tool_lookup(....) {
  4.   ....
  5.   printf("%08I64x   %s + %x [%s:%d]\n",
  6.     addr, sym->name, addr-sym->rva, fn, line);
  7.   ....
  8. }
  9.  
  10. This suspicious code was found in Virtualdub project by PVS-Studio static code analyzer.
  11. Warning message is:
  12. V576 Incorrect format. Consider checking the fourth actual argument of the 'printf' function. The argument is expected to be not greater than 32-bit. Asuka lookup.cpp 56
  13.  
  14. 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