cvs: gd /libgd ISSUES gd_gif_out.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1167914671@cvsserver>
pajoye		Thu Jan  4 12:44:31 2007 UTC

  Modified files:              
    /gd/libgd	gd_gif_out.c ISSUES 
  Log:
  - #14, sanity check in gd_gif_out
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_gif_out.c?r1=1.5&r2=1.6&diff_format=u
Index: gd/libgd/gd_gif_out.c
diff -u gd/libgd/gd_gif_out.c:1.5 gd/libgd/gd_gif_out.c:1.6
--- gd/libgd/gd_gif_out.c:1.5	Sun Oct  8 16:42:47 2006
+++ gd/libgd/gd_gif_out.c	Thu Jan  4 12:44:31 2007
@@ -446,6 +446,9 @@
 BGD_DECLARE(void *) gdImageGifAnimEndPtr (int *size)
 {
   char *rv = (char *) gdMalloc (1);
+  if (!rv) {
+    return 0;
+  }
   *rv = ';';
   *size = 1;
   return (void *)rv;
http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.33&r2=1.34&diff_format=u
Index: gd/libgd/ISSUES
diff -u gd/libgd/ISSUES:1.33 gd/libgd/ISSUES:1.34
--- gd/libgd/ISSUES:1.33	Thu Jan  4 12:36:40 2007
+++ gd/libgd/ISSUES	Thu Jan  4 12:44:31 2007
@@ -41,6 +41,7 @@
  - gdImageStringFTEx, use gdMalloc and gdRealloc
  - gd_gd2
  - gd_topal
+ - gd_gif_out
  - gdImageCopyResized 
 #15, gdImageCreatePaletteFromTrueColor(), colors allocated henceforth from 
      the resulting image overwrite the palette colors (Rob Leslie)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.