Skip to content

Commit 3627aaf

Browse files
committed
Fixed #6011: Bounds check in rdp_read_font_capability_set
1 parent f8890a6 commit 3627aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libfreerdp/core/capabilities.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1397,10 +1397,10 @@ static BOOL rdp_print_input_capability_set(wStream* s, UINT16 length)
13971397
static BOOL rdp_read_font_capability_set(wStream* s, UINT16 length, rdpSettings* settings)
13981398
{
13991399
WINPR_UNUSED(settings);
1400-
if (length > 4)
1400+
if (length > 5)
14011401
Stream_Seek_UINT16(s); /* fontSupportFlags (2 bytes) */
14021402

1403-
if (length > 6)
1403+
if (length > 7)
14041404
Stream_Seek_UINT16(s); /* pad2Octets (2 bytes) */
14051405

14061406
return TRUE;

0 commit comments

Comments
 (0)