mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
sfnt2fon: Avoid out-of-bounds read (AddressSanitizer).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45422 Signed-off-by: Anton Baskanov <baskanov@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3a54b3413d
commit
2e26090838
1 changed files with 1 additions and 1 deletions
|
@ -743,7 +743,7 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
|
|||
for(x = 0; x < ((info->dfCharTable[i].width + 7) / 8); x++) {
|
||||
for(y = 0; y < ppem; y++) {
|
||||
if(y < ascent - face->glyph->bitmap_top ||
|
||||
y >= face->glyph->bitmap.rows + ascent - face->glyph->bitmap_top) {
|
||||
y >= (int)face->glyph->bitmap.rows + ascent - face->glyph->bitmap_top) {
|
||||
info->data[data_pos++] = 0;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue