shithub: freetype+ttf2subf

Download patch

ref: 1e6e1b8390868c1a1c749f0a8434381bc9724c95
parent: b3500af717010137046ec4076d1e1c0641e33727
author: Werner Lemberg <[email protected]>
date: Thu Nov 20 16:07:56 EST 2014

* src/base/ftbitmap.c (FT_Bitmap_New): Check argument.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-20  Werner Lemberg  <[email protected]>
+
+	* src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
+
 2014-11-19  Werner Lemberg  <[email protected]>
 
 	Change some fields in `FT_Bitmap' to unsigned type.
--- a/src/base/ftbitmap.c
+++ b/src/base/ftbitmap.c
@@ -33,7 +33,8 @@
   FT_EXPORT_DEF( void )
   FT_Bitmap_New( FT_Bitmap  *abitmap )
   {
-    *abitmap = null_bitmap;
+    if ( abitmap )
+      *abitmap = null_bitmap;
   }