I'm using the last tinyxml lib in a project. At one point, i made a call to SetDoubleAttribute() with an uninitialized value in the double argument, and got a 'Buffer too small' error. Changing the buffer size in the function from 256 to 512 chars solved the problem. One of the problematic values is 3711443205885392400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000.
This is what the
TIXML_SNPRINTF( buf, sizeof(buf), "%f", val );
expression put in the buffer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using the last tinyxml lib in a project. At one point, i made a call to SetDoubleAttribute() with an uninitialized value in the double argument, and got a 'Buffer too small' error. Changing the buffer size in the function from 256 to 512 chars solved the problem. One of the problematic values is 3711443205885392400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000.
This is what the
TIXML_SNPRINTF( buf, sizeof(buf), "%f", val );
expression put in the buffer
Good bug catch. I'll patch that up in the next version. For future reference please file in the "bugs" section.
thanks,
lee