php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68826 Resource leak in zip_stream.c
Submitted: 2015-01-13 17:34 UTC Modified: 2015-01-19 04:40 UTC
From: bugreports at internot dot info Assigned: laruence (profile)
Status: Closed Package: Zip Related
PHP Version: master-Git-2015-01-13 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
 [2015-01-13 17:34 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/zip/zip_stream.c:

162                if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) {
163                        zend_string_release(file_basename);
164                        return -1;

this leaks 'za'.


Thanks,


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-18 04:21 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b21d9123a50bfeec1a5b4e0bbd50eb277c24b02f
Log: Fixed #68826 (Resource leak)
 [2015-01-18 04:21 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-01-19 04:40 UTC] stas@php.net
-Summary: Resource leak +Summary: Resource leak in zip_stream.c -Assigned To: +Assigned To: laruence
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b21d9123a50bfeec1a5b4e0bbd50eb277c24b02f
Log: Fixed #68826 (Resource leak)
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 18 17:03:14 2022 UTC