[WIP] One more length check.
This commit is contained in:
parent
792e23d481
commit
2cec76f748
@ -44,6 +44,9 @@ void guac_rdpsnd_process_receive(guac_rdp_common_svc* svc,
|
|||||||
Stream_Seek_UINT8(input_stream);
|
Stream_Seek_UINT8(input_stream);
|
||||||
Stream_Read_UINT16(input_stream, header.body_size);
|
Stream_Read_UINT16(input_stream, header.body_size);
|
||||||
|
|
||||||
|
if (Stream_GetRemainingLength(input_stream) < header.body_size)
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If next PDU is SNDWAVE (due to receiving WaveInfo PDU previously),
|
* If next PDU is SNDWAVE (due to receiving WaveInfo PDU previously),
|
||||||
* ignore the header and parse as a Wave PDU.
|
* ignore the header and parse as a Wave PDU.
|
||||||
|
Loading…
Reference in New Issue
Block a user