Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed #6011: Bounds check in rdp_read_font_capability_set
  • Loading branch information
akallabeth committed Apr 2, 2020
1 parent f8890a6 commit 3627aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libfreerdp/core/capabilities.c
Expand Up @@ -1397,10 +1397,10 @@ static BOOL rdp_print_input_capability_set(wStream* s, UINT16 length)
static BOOL rdp_read_font_capability_set(wStream* s, UINT16 length, rdpSettings* settings)
{
WINPR_UNUSED(settings);
if (length > 4)
if (length > 5)
Stream_Seek_UINT16(s); /* fontSupportFlags (2 bytes) */

if (length > 6)
if (length > 7)
Stream_Seek_UINT16(s); /* pad2Octets (2 bytes) */

return TRUE;
Expand Down

0 comments on commit 3627aaf

Please sign in to comment.