mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-02-06 03:33:47 +00:00
1. Fixed integer overflow detection for 32 bit
2. Fixed compiler warning
This commit is contained in:
@@ -797,7 +797,7 @@ __EXPORT_TYPE int ILibSimpleDataStore_GetEx(ILibSimpleDataStore dataStore, char*
|
||||
if (centry != NULL)
|
||||
{
|
||||
ILibInflate(centry->value, centry->valueLength, NULL, &tmplen, 0);
|
||||
if (buffer != NULL && bufferLen >= tmplen)
|
||||
if (buffer != NULL && bufferLen >= (int)tmplen)
|
||||
{
|
||||
ILibInflate(centry->value, centry->valueLength, buffer, &tmplen, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user