Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed #6009: Bounds checks in autodetect_recv_bandwidth_measure_results
  • Loading branch information
akallabeth committed Apr 2, 2020
1 parent 9301bfe commit f5e73cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libfreerdp/core/autodetect.c
Expand Up @@ -465,6 +465,8 @@ static BOOL autodetect_recv_bandwidth_measure_results(rdpRdp* rdp, wStream* s,
return FALSE;

WLog_VRB(AUTODETECT_TAG, "received Bandwidth Measure Results PDU");
if (Stream_GetRemainingLength(s) < 8)
return -1;
Stream_Read_UINT32(s, rdp->autodetect->bandwidthMeasureTimeDelta); /* timeDelta (4 bytes) */
Stream_Read_UINT32(s, rdp->autodetect->bandwidthMeasureByteCount); /* byteCount (4 bytes) */

Expand Down

0 comments on commit f5e73cc

Please sign in to comment.