[sfnt] Protect against zero-size bitmaps (#46345).

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Check
`glyph_size'.
2.6.5
Werner Lemberg 9 years ago
parent b6fd5bc06c
commit aae8808780
  1. 7
      ChangeLog
  2. 3
      src/sfnt/ttsbit.c

@ -1,3 +1,10 @@
2015-11-03 Werner Lemberg <wl@gnu.org>
[sfnt] Protect against zero-size bitmaps (#46345).
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Check
`glyph_size'.
2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
* src/autofit/afloader.c (af_loader_load_g): Implement emboldening.

@ -1025,7 +1025,8 @@
/* seek into the EBDT table now */
if ( glyph_start + glyph_size > decoder->ebdt_size )
if ( !glyph_size ||
glyph_start + glyph_size > decoder->ebdt_size )
{
error = FT_THROW( Invalid_Argument );
goto Exit;

Loading…
Cancel
Save