cvs: gd /libgd ISSUES gd_topal.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1167849105@cvsserver>
pajoye		Wed Jan  3 18:31:45 2007 UTC

  Modified files:              
    /gd/libgd	gd_topal.c ISSUES 
  Log:
  - #14, Fixed leak in jinit_2pass_quantizer (gd_topal.c)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_topal.c?r1=1.11&r2=1.12&diff_format=u
Index: gd/libgd/gd_topal.c
diff -u gd/libgd/gd_topal.c:1.11 gd/libgd/gd_topal.c:1.12
--- gd/libgd/gd_topal.c:1.11	Wed Apr  5 15:54:20 2006
+++ gd/libgd/gd_topal.c	Wed Jan  3 18:31:45 2007
@@ -1931,7 +1931,8 @@
   init_error_limit (oim, nim, cquantize);
   arraysize = (size_t) ((nim->sx + 2) * (3 * sizeof (FSERROR)));
   /* Allocate Floyd-Steinberg workspace. */
-  cquantize->fserrors = gdCalloc (arraysize, 1);
+	cquantize->fserrors = gdRealloc(cquantize->fserrors, arraysize);
+	memset(cquantize->fserrors, 0, arraysize);
   if (!cquantize->fserrors)
     {
       goto outOfMemory;
http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.12&r2=1.13&diff_format=u
Index: gd/libgd/ISSUES
diff -u gd/libgd/ISSUES:1.12 gd/libgd/ISSUES:1.13
--- gd/libgd/ISSUES:1.12	Wed Nov  8 12:32:41 2006
+++ gd/libgd/ISSUES	Wed Jan  3 18:31:45 2007
@@ -32,3 +32,4 @@
 #12, gdImageCreateFromPngCrx, initialize the signature buffer not the infile
      CTX (Takeshi Abe)
 #13, remove generated files from cvs, add bootstrap script
+#14, Fixed leak in jinit_2pass_quantizer (gd_topal.c)
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.