cvs: gd /libgd ISSUES gd_topal.c

From: Date: Wed, 03 Jan 2007 18:31:45 +0000
Subject: cvs: gd /libgd ISSUES gd_topal.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-42@lists.php.net to get a copy of this message
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)

« previous php.gd.cvs (#42) next »