Add return statement when not enough data

This commit is contained in:
ehdgks0627 2023-08-03 16:58:40 +09:00 committed by akallabeth
parent 33c2c5eb96
commit 8e3d72e814

View File

@ -112,6 +112,7 @@ static UINT32 geometry_read_RGNDATA(wLog* logger, wStream* s, UINT32 len, FREERD
if (len / (4 * 4) < rgndata->nRectCount)
{
WLog_Print(logger, WLOG_ERROR, "not enough data for region rectangles");
return ERROR_INVALID_DATA;
}
if (rgndata->nRectCount)