[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:
parent
43d4852ec6
commit
34e467332b
@ -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).
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user