PVS-StudioWarnings

PVS-Studio warning V557 for blender

Nov 12th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. void CcdPhysicsController::RelativeRotate(
  2.   const float rotval[9], bool local)
  3. {
  4.   ...
  5.   btMatrix3x3 drotmat(
  6.     rotval[0],rotval[4],rotval[8],
  7.     rotval[1],rotval[5],rotval[9],
  8.     rotval[2],rotval[6],rotval[10]);
  9.   ...
  10. }
  11.  
  12. This suspicious code was found in blender project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V557 Array overrun is possible. The '9' index is pointing beyond array bound. ge_phys_bullet ccdphysicscontroller.cpp 867
  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