mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[coverity] 1543037 Out-of-bounds read
This commit is contained in:
@@ -410,7 +410,7 @@ static int rdtk_font_parse_descriptor_buffer(rdtkFont* font, uint8_t* buffer, si
|
||||
|
||||
*r = '\0';
|
||||
/* start parsing glyph */
|
||||
if (index > font->glyphCount)
|
||||
if (index >= font->glyphCount)
|
||||
return -1;
|
||||
|
||||
rdtkGlyph* glyph = &font->glyphs[index];
|
||||
|
||||
Reference in New Issue
Block a user