php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73161 imagecreatefromgd2() may leak memory
Submitted: 2016-09-24 10:05 UTC Modified: 2016-09-24 10:05 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: 5.6Git-2016-09-24 (Git) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2016-09-24 10:05 UTC] cmb@php.net
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-24 10:05 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-09-24 10:57 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f5eda4bf62ca0e1ba6459b42fb5c0b629774cb2
Log: Fix #73161: imagecreatefromgd2() may leak memory
 [2016-09-24 10:57 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-10-17 10:07 UTC] bwoebi@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f5eda4bf62ca0e1ba6459b42fb5c0b629774cb2
Log: Fix #73161: imagecreatefromgd2() may leak memory
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC