Add return statement when not enough data
This commit is contained in:
parent
33c2c5eb96
commit
8e3d72e814
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user