Bug #73161 [NEW]: imagecreatefromgd2() may leak memory

From: Date: Sat, 24 Sep 2016 10:05:48 +0000
Subject: Bug #73161 [NEW]: imagecreatefromgd2() may leak memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204235@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: 5.6Git-2016-09-24 (Git) Package: GD related Bug Type: Bug Bug description:imagecreatefromgd2() may leak memory Description: ------------ If the color header of a GD2 image can't be read, gdimagecreatefromgd2() fails to free a t_chunk_info structure, causing a memory leak. I don't think this is a security issue, as the GD2 format is not supposed to be used for production purposes anyway, see <https://libgd.github.io/release-2.2.2.html>. FTR: this issue has been fixed as of libgd 2.1.0. -- Edit bug report at https://bugs.php.net/bug.php?id=73161&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73161&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73161&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73161&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73161&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73161&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73161&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73161&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73161&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73161&r=support Expected behavior: https://bugs.php.net/fix.php?id=73161&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73161&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73161&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73161&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73161&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73161&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73161&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73161&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73161&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73161&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73161&r=mysqlcfg

« previous php.bugs (#204235) next »