cvs: gd(GD_2_0) /libgd/src NEWS gd_wbmp.c

[email protected] ("Scott MacVicar") Wed, 24 Oct 2007 13:50:31 -0000
Newsgroups php.gd.cvs
Message-ID <cvsscottmac1193233831@cvsserver>
scottmac		Wed Oct 24 13:50:31 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd/src	NEWS gd_wbmp.c 
  Log:
  MFH: #127,  segfault when createwbmp fails
  
http://cvs.php.net/viewvc.cgi/gd/libgd/src/NEWS?r1=1.4.2.33&r2=1.4.2.34&diff_format=u
Index: gd/libgd/src/NEWS
diff -u gd/libgd/src/NEWS:1.4.2.33 gd/libgd/src/NEWS:1.4.2.34
--- gd/libgd/src/NEWS:1.4.2.33	Sun Sep  9 13:12:39 2007
+++ gd/libgd/src/NEWS	Wed Oct 24 13:50:31 2007
@@ -10,6 +10,7 @@
 111, Optimization for single pixel line not in correct order (Mattias)
 112, gdImageColorDeallocate can write outside buffer (Mattias Bengtsson)
 113, gdImageColorTransparent can write outside buffer (Mattias Bengtsson)
+127, gdImageWBMPCtx can crash when createwbmp fails
 
 GD 2.0.35 (2007-06-21)
 41, Fix valgrind error in gdImageFillTiled (Nuno Lopes) 
http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd_wbmp.c?r1=1.10.2.1&r2=1.10.2.2&diff_format=u
Index: gd/libgd/src/gd_wbmp.c
diff -u gd/libgd/src/gd_wbmp.c:1.10.2.1 gd/libgd/src/gd_wbmp.c:1.10.2.2
--- gd/libgd/src/gd_wbmp.c:1.10.2.1	Tue Aug  7 19:50:39 2007
+++ gd/libgd/src/gd_wbmp.c	Wed Oct 24 13:50:31 2007
@@ -109,7 +109,10 @@
   /* create the WBMP */
   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;