shithub: freetype+ttf2subf

Download patch

ref: 0f0a6bb8aaae07c4105ac4d6ee26fd8eda946b3e
parent: 758d55e522eb426dad2f15adc1d945f7896d7b29
author: Werner Lemberg <[email protected]>
date: Thu Nov 5 08:48:11 EST 2015

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

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Implement
it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-11-05  Werner Lemberg  <[email protected]>
+
+	[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  <[email protected]>
 
 	[truetype] Catch infinite recursion in subglyphs (#46372).
--- a/src/sfnt/ttsbit.c
+++ b/src/sfnt/ttsbit.c
@@ -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 */