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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC