AppEasyCoreSDK icon indicating copy to clipboard operation
AppEasyCoreSDK copied to clipboard

XML parser's getNextWord may access invalid address

Open SimonRen opened this issue 10 years ago • 0 comments

With function

int CzXmlParser::getNextWord(const char* data, int &offset)

Parameter data is not protected by '/0' in the buffer end of class IwGameString. When use in a heavy memory alloc game, last byte after data may not be '/0' and the call to getNextWord will cost lots time to finish.

I find this problem in IwGame Engine, wish that was good in new AppEasy Engine.

regards, Simon

SimonRen avatar Mar 18 '15 10:03 SimonRen