Skip to content

Commit c0fd449

Browse files
committed
Fixed Out-of-bound read in glyph_cache_put
CVE-2020-11098 thanks to @antonio-morales for finding this.
1 parent 6ade7b4 commit c0fd449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libfreerdp/cache/glyph.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ BOOL glyph_cache_put(rdpGlyphCache* glyphCache, UINT32 id, UINT32 index, rdpGlyp
579579
return FALSE;
580580
}
581581

582-
if (index > glyphCache->glyphCache[id].number)
582+
if (index >= glyphCache->glyphCache[id].number)
583583
{
584584
WLog_ERR(TAG, "invalid glyph cache index: %" PRIu32 " in cache id: %" PRIu32 "", index, id);
585585
return FALSE;

0 commit comments

Comments
 (0)