#46433 [Opn->Bgs]: imagecreatefrom(...) leaks memory on errors

From: Date: Fri, 31 Oct 2008 13:45:59 +0000
Subject: #46433 [Opn->Bgs]: imagecreatefrom(...) leaks memory on errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130351@lists.php.net to get a copy of this message
ID: 46433 Updated by: pajoye@php.net Reported By: ak at pre-secure dot de -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux (OpenSUSE) PHP Version: 5.2.6 Assigned To: pajoye New Comment: not a bug > bogus Previous Comments: ------------------------------------------------------------------------ [2008-10-31 13:43:32] ak at pre-secure dot de Seems to be fixed with the newest snapshot. Cannot reproduce it anymore. ------------------------------------------------------------------------ [2008-10-31 13:42:42] pajoye@php.net Please provide an example image (link to it or drop me a mail). ------------------------------------------------------------------------ [2008-10-31 13:20:03] ak at pre-secure dot de I have to admit that my initial bugreport is a litte bit too unspecific. The memory problem only occures if the image is "tainted", f.e. taking a valid png and change a arbitrary line in the source. This will result in an error like this: PHP Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in ---- and a rapid growth of the memory usage. ------------------------------------------------------------------------ [2008-10-30 16:49:46] felipe@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I can't reproduce it using 5.2.7CVS. ------------------------------------------------------------------------ [2008-10-30 16:49:23] crrodriguez at opensuse dot org memory usage is constant for me, are you sure you are using version 5.2.6 ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/46433 -- Edit this bug report at http://bugs.php.net/?id=46433&edit=1

« previous php.bugs (#130351) next »