php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68716 possible resource leaks in _php_image_convert()
Submitted: 2015-01-02 08:34 UTC Modified: 2016-08-21 18:08 UTC
From: bugreports at internot dot info Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: master-Git-2015-01-02 (Git) OS: Linux Ubuntu 14.04
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: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2015-01-02 08:34 UTC] bugreports at internot dot info
Description:
------------
Memleaks in /ext/gd/gd.c:

4470                                RETURN_FALSE;
4490                                RETURN_FALSE;
4497                        RETURN_FALSE;
4531                RETURN_FALSE;
4543                RETURN_FALSE;
4549                RETURN_FALSE;
4555                RETURN_FALSE;

leaks 'dest'.


and in the same file..

4497                        RETURN_FALSE;
4462                RETURN_FALSE;

leaks 'org'






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-21 16:21 UTC] cmb@php.net
-Summary: memleaks +Summary: possible resource leaks in _php_image_convert() -Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-08-21 16:21 UTC] cmb@php.net
Confirmed. However, in _php_image_convert[1] `org` and `dest` are
`FILE *`s, so I'd call it "resource leaks" instead.

[1] <https://github.com/php/php-src/blob/PHP-7.0.10/ext/gd/gd.c#L4011-L4189>
 [2016-08-21 18:07 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6a232c3604f6c00f6c09cc3782dd1b36b30d23d4
Log: Fix #68716: possible resource leaks in _php_image_convert()
 [2016-08-21 18:07 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-08-21 18:08 UTC] cmb@php.net
Thank you for the report, and for helping us make PHP better.
 [2016-10-17 10:09 UTC] bwoebi@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6a232c3604f6c00f6c09cc3782dd1b36b30d23d4
Log: Fix #68716: possible resource leaks in _php_image_convert()
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC