PVS-StudioWarnings

PVS-Studio warning V534 for Coin3D

Nov 11th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. cc_xml_elt *
  2. cc_xml_elt_create_x(cc_xml_elt * from, cc_xml_path * path)
  3. {
  4.   ....
  5.   int i;
  6.   for ( i = 0; i < length; i++ ) {
  7.     ....
  8.     int child;
  9.     for (child = 0; i < current->children.getLength(); child++)
  10.     {
  11.   ....
  12. }
  13.  
  14. This suspicious code was found in Coin3D project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V534 It is likely that a wrong variable is being compared inside the 'for' operator. Consider reviewing 'i'. element.cpp 996
  17.  
  18. 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