PVS-StudioWarnings

PVS-Studio warning V557 for OpenCOLLADA

Nov 10th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. struct short2
  2. {
  3.   short values[2];
  4.   short2(short s1, short s2)
  5.   {
  6.     values[0] = s1;
  7.     values[2] = s2;
  8.   }
  9.   ....
  10. };
  11.  
  12. This suspicious code was found in OpenCOLLADA project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V557 Array overrun is possible. The '2' index is pointing beyond array bound. mayadmtypes.h 48
  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