shithub: freetype+ttf2subf

Download patch

ref: 4ebc890e0658b8b9c13795559e142b255781aeb5
parent: 8271e5e44381362770a5a5924b237440f328c93f
author: Werner Lemberg <[email protected]>
date: Sun Apr 13 18:06:12 EDT 2008

* src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
`FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'.  From Savannah
bug #22909.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-14  Werner Lemberg  <[email protected]>
+
+	* src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
+	`FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'.  From Savannah
+	bug #22909.
+
 2008-04-13  Werner Lemberg  <[email protected]>
 
 	* src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if
--- a/src/pcf/pcfdrivr.c
+++ b/src/pcf/pcfdrivr.c
@@ -2,7 +2,7 @@
 
     FreeType font driver for pcf files
 
-    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007 by
+    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008 by
     Francesco Zappa Nardelli
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -273,6 +273,7 @@
 
       error = error2;
       if ( error )
+#ifdef FT_CONFIG_OPTION_USE_LZW
       {
         FT_Error  error3;
 
@@ -295,6 +296,9 @@
         if ( error )
           goto Fail;
       }
+#else
+        goto Fail;
+#endif
       else
       {
         face->gzip_source = stream;