From 1e6e1b8390868c1a1c749f0a8434381bc9724c95 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 20 Nov 2014 21:07:56 +0100 Subject: [PATCH] * src/base/ftbitmap.c (FT_Bitmap_New): Check argument. --- ChangeLog | 4 ++++ src/base/ftbitmap.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 375f75971..65e5c16e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-20 Werner Lemberg + + * src/base/ftbitmap.c (FT_Bitmap_New): Check argument. + 2014-11-19 Werner Lemberg Change some fields in `FT_Bitmap' to unsigned type. diff --git a/src/base/ftbitmap.c b/src/base/ftbitmap.c index 3e98079cb..d33364391 100644 --- 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; }