cvs: php-src(PHP_5_2) /ext/gd gd.c

From: Date: Thu, 28 Sep 2006 23:17:31 +0000
Subject: cvs: php-src(PHP_5_2) /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40773@lists.php.net to get a copy of this message
iliaa Thu Sep 28 23:17:31 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/gd gd.c Log: Fixed a large leak inside _php_image_create_from() http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.312.2.20.2.5&r2=1.312.2.20.2.6&diff_format=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.312.2.20.2.5 php-src/ext/gd/gd.c:1.312.2.20.2.6 --- php-src/ext/gd/gd.c:1.312.2.20.2.5 Tue Aug 8 11:56:36 2006 +++ php-src/ext/gd/gd.c Thu Sep 28 23:17:31 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.312.2.20.2.5 2006/08/08 11:56:36 pajoye Exp $ */ +/* $Id: gd.c,v 1.312.2.20.2.6 2006/09/28 23:17:31 iliaa Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -2406,6 +2406,7 @@ io_ctx = gdNewDynamicCtxEx(buff_size, buff, 0); if (!io_ctx) { + pefree(buff, 1); php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot allocate GD IO context"); goto out_err; } @@ -2420,7 +2421,7 @@ #else io_ctx->free(io_ctx); #endif - + pefree(buff, 1); #endif } else {

« previous php.cvs (#40773) next »