cvs: gd /libgd gd_gd2.c
| From: | Pierre-Alain Joye | Date: | Thu, 04 Jan 2007 12:40:48 +0000 |
| Subject: | cvs: gd /libgd gd_gd2.c | ||
| Groups: | php.gd.cvs | ||
| Request: | Send a blank email to php-gd-cvs+get-69@lists.php.net to get a copy of this message | ||
pajoye Thu Jan 4 12:40:48 2007 UTC
Modified files:
/gd/libgd gd_gd2.c
Log:
- #14, one more sanity check in gd_gd2
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_gd2.c?r1=1.20&r2=1.21&diff_format=u
Index: gd/libgd/gd_gd2.c
diff -u gd/libgd/gd_gd2.c:1.20 gd/libgd/gd_gd2.c:1.21
--- gd/libgd/gd_gd2.c:1.20 Wed Jan 3 21:42:02 2007
+++ gd/libgd/gd_gd2.c Thu Jan 4 12:40:48 2007
@@ -898,6 +898,9 @@
gdSeek (out, idxPos + idxSize);
chunkIdx = gdCalloc (idxSize * sizeof (t_chunk_info), 1);
+ if (!chunkIdx) {
+ goto fail;
+ }
};
_gdPutColors (im, out);