"Array index i is used before limits check" in tinyxml.h
Brought to you by:
leethomason
Hello,
Cppcheck reported this :
[tinyxml.h:353]: (style) Array index i is used before limits check
Here are the lines :
353 for( int i=0; p[i] && i<*length; ++i ) {
354 _value[i] = p[i];
355 }
So I think line 353 should be changed like this :
for( int i=0; i<*length && p[i]; ++i ) {
Julien.
I would like to work on this bug. Please assign this to me.