mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed stream advance before length checks
This commit is contained in:
@@ -183,10 +183,10 @@ static UINT telemetry_process_message(telemetry_server* telemetry)
|
||||
goto out;
|
||||
}
|
||||
|
||||
Stream_Seek(s, BytesReturned);
|
||||
if (!Stream_CheckAndLogRequiredLength(TAG, s, 2))
|
||||
return ERROR_NO_DATA;
|
||||
|
||||
Stream_SetLength(s, BytesReturned);
|
||||
Stream_Read_UINT8(s, MessageId);
|
||||
Stream_Read_UINT8(s, Length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user