cvs: gd /libgd gd.c

From: Date: Sat, 03 Feb 2007 01:03:42 +0000
Subject: cvs: gd /libgd gd.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-107@lists.php.net to get a copy of this message
pajoye Sat Feb 3 01:03:42 2007 UTC Modified files: /gd/libgd gd.c Log: - MFB: #14, sanity check http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49&r2=1.50&diff_format=u Index: gd/libgd/gd.c diff -u gd/libgd/gd.c:1.49 gd/libgd/gd.c:1.50 --- gd/libgd/gd.c:1.49 Mon Jan 29 21:56:37 2007 +++ gd/libgd/gd.c Sat Feb 3 01:03:41 2007 @@ -1,4 +1,4 @@ -/* $Id: gd.c,v 1.49 2007/01/29 21:56:37 pajoye Exp $ */ +/* $Id: gd.c,v 1.50 2007/02/03 01:03:41 pajoye Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -1941,6 +1941,9 @@ nc = gdImageTileGet(im,x,y); pts = (int **) gdCalloc(sizeof(int *) * im->sy, sizeof(int)); + if (!pts) { + return; + } for (i=0; i<im->sy;i++) { pts[i] = (int *) gdCalloc(im->sx, sizeof(int));

« previous php.gd.cvs (#107) next »