I was loading a big sprite sheet and needed to increase my memsize, but then I got a whole different problem.
After some work I found this out this method which is called in the process:
bool CCSAXParser::parse(const char* pXMLData, unsigned int uDataLength)
return tinyDoc.Accept( &printer );
Receives a length or, a default of –1 and does strlen on pXMLData.
When I was loading my big sprite sheet CCSAXParser::parse was called with uDataLength of 3000 or so (don’t really remember),
but the length received inside tinyDoc.Parse was over 200,000 which when used in memcpy made my program crashed.
My solution was to send uDataLength to tinyDocParse aswell.
But is it a good solution or something else is wrong here?