shithub: freetype+ttf2subf

Download patch

ref: 41bfbadcd3eaadc6b324fdd93c3adb185b048dbb
parent: 4308b7b1af2161a6de5e7a360eba1b5d97064e7e
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Jun 24 19:57:19 EDT 2015

* src/bdf/bdflib.c (_bdf_parse_start): Disallow 0 bpp.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-06-24  Alexei Podtelezhnikov <[email protected]>
 
+	* src/bdf/bdflib.c (_bdf_parse_start): Disallow 0 bpp.
+
+2015-06-24  Alexei Podtelezhnikov <[email protected]>
+
 	* src/bdf/bdflib.c (_bdf_parse_start): Simplify bpp parsing.
 
 2015-06-23  Werner Lemberg  <[email protected]>
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -2356,8 +2356,10 @@
           p->font->bpp = 8;
         else if ( bpp > 2 )
           p->font->bpp = 4;
+        else if ( bpp > 1 )
+          p->font->bpp = 2;
         else
-          p->font->bpp = bpp;
+          p->font->bpp = 1;
 
         if ( p->font->bpp != bpp )
           FT_TRACE2(( "_bdf_parse_start: " ACMSG11, p->font->bpp ));