Bug #68716 [Csd]: possible resource leaks in _php_image_convert()

From: Date: Sun, 21 Aug 2016 18:08:09 +0000
Subject: Bug #68716 [Csd]: possible resource leaks in _php_image_convert()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203459@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68716&edit=1

 ID:                 68716
 Updated by:         cmb@php.net
 Reported by:        bugreports at internot dot info
 Summary:            possible resource leaks in _php_image_convert()
 Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Linux Ubuntu 14.04
 PHP Version:        master-Git-2015-01-02 (Git)
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for the report, and for helping us make PHP better.


Previous Comments:
------------------------------------------------------------------------
[2016-08-21 18:07:31] 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 16:21:28] 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>

------------------------------------------------------------------------
[2015-01-02 08:34:29] 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'







------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68716&edit=1


Thread (4 messages)

« previous php.bugs (#203459) next »