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