cvs: gd /libgd/src gd_wbmp.c
| From: | Scott MacVicar | Date: | Wed, 24 Oct 2007 13:46:56 +0000 |
| Subject: | cvs: gd /libgd/src gd_wbmp.c | ||
| Groups: | php.gd.cvs | ||
| Request: | Send a blank email to php-gd-cvs+get-322@lists.php.net to get a copy of this message | ||
scottmac Wed Oct 24 13:46:56 2007 UTC
Modified files:
/gd/libgd/src gd_wbmp.c
Log:
- #127, segfault when createwbmp fails
http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd_wbmp.c?r1=1.11&r2=1.12&diff_format=u
Index: gd/libgd/src/gd_wbmp.c
diff -u gd/libgd/src/gd_wbmp.c:1.11 gd/libgd/src/gd_wbmp.c:1.12
--- gd/libgd/src/gd_wbmp.c:1.11 Tue Aug 7 19:44:40 2007
+++ gd/libgd/src/gd_wbmp.c Wed Oct 24 13:46:56 2007
@@ -107,9 +107,11 @@
/* create the WBMP */
- if ((wbmp =
- createwbmp (gdImageSX (image), gdImageSY (image), WBMP_WHITE)) == NULL)
- fprintf (stderr, "Could not create WBMP\n");
+ if ((wbmp = createwbmp (gdImageSX (image), gdImageSY (image), WBMP_WHITE)) == NULL)
+ {
+ fprintf (stderr, "Could not create WBMP\n");
+ return;
+ }
/* fill up the WBMP structure */
pos = 0;