PVS-StudioWarnings

PVS-Studio warning V557 for Coin3D

Nov 19th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. void
  2. SoMFColorRGBA::set1HSVValue(int idx, const float hsva[3])
  3. {
  4.   this->set1HSVValue(idx, hsva[0], hsva[1], hsva[2], hsva[3]);
  5. }
  6.  
  7. This suspicious code was found in Coin3D project by PVS-Studio static code analyzer.
  8. Warning message is:
  9. V557 Array overrun is possible. The '3' index is pointing beyond array bound. somfcolorrgba.cpp 220
  10.  
  11. 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