[sfnt] Ignore embedded bitmaps with zero size (#46379).

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Implement
it.
This commit is contained in:
Werner Lemberg 2015-11-05 13:48:11 +01:00
parent 758d55e522
commit 0f0a6bb8aa
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-11-05 Werner Lemberg <wl@gnu.org>
[sfnt] Ignore embedded bitmaps with zero size (#46379).
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Implement
it.
2015-11-04 Werner Lemberg <wl@gnu.org>
[truetype] Catch infinite recursion in subglyphs (#46372).

View File

@ -808,6 +808,12 @@
goto Exit;
}
if ( !line_bits || !height )
{
/* nothing to do */
goto Exit;
}
/* now do the blit */
/* adjust `line' to point to the first byte of the bitmap */