mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,gateway] add checks to tsg_ndr_read_packet_response
Abort on unexpected offset value.
This commit is contained in:
@@ -773,6 +773,13 @@ static BOOL tsg_ndr_read_packet_response(wLog* log, wStream* s, UINT32* index,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (MaxOffsetValue != 0)
|
||||
{
|
||||
WLog_Print(log, WLOG_ERROR, "Unexpected offset value: %" PRIu32 ", expected: 0",
|
||||
MaxOffsetValue);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!Stream_CheckAndLogRequiredLengthWLog(log, s, MaxSizeValue))
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user