cvs: gd /libgd/src gd_wbmp.c
[email protected] ("Scott MacVicar") Wed, 24 Oct 2007 13:46:56 -0000
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvsscottmac1193233616@cvsserver> |
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;