cvs: gd /libgd gd.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1170464622@cvsserver> |
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));