mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Add return statement when not enough data
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user