[sfnt] Correctly handle missing bitmaps in sbix format (#53404).

* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
This commit is contained in:
Ben Wagner 2018-03-23 06:13:25 +01:00 committed by Werner Lemberg
parent 43d4852ec6
commit 34e467332b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-03-23 Ben Wagner <bungeman@google.com>
[sfnt] Correctly handle missing bitmaps in sbix format (#53404).
* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
2018-03-23 Ben Wagner <bungeman@google.com>
[truetype] Fix advance of empty glyphs in bitmap fonts (#53393).

View File

@ -1514,7 +1514,7 @@
FT_FRAME_EXIT();
if ( glyph_start == glyph_end )
return FT_THROW( Invalid_Argument );
return FT_THROW( Missing_Bitmap );
if ( glyph_start > glyph_end ||
glyph_end - glyph_start < 8 ||
face->ebdt_size - strike_offset < glyph_end )