|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60377 ZipArchive::extractTo() memory leaks with invalid path using phar://
Submitted: 2011-11-24 21:52 UTC Modified: 2012-09-08 15:24 UTC
Avg. Score:3.3 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Assigned: pajoye (profile)
Status: Closed Package: Zip Related
PHP Version: trunk-SVN-2011-11-24 (SVN) 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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2011-11-24 21:52 UTC]
See below.

Test script:

$x = new ZipArchive;

Actual result:
$ sapi/cli/php ../bug.php 
[Thu Nov 24 19:50:30 2011]  Script:  '../bug.php'
/home/felipe/dev/phptrunk/main/streams/streams.c(258) :  Freeing 0x7FF3DEA323F8 (8 bytes), script=../bug.php
[Thu Nov 24 19:50:30 2011]  Script:  '../bug.php'
/home/felipe/dev/phptrunk/main/spprintf.c(236) :  Freeing 0x7FF3DEA35440 (207 bytes), script=../bug.php
=== Total 2 memory leaks detected ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-24 21:52 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2012-09-08 15:14 UTC] reeze dot xia at gmail dot com
I just test with latest versions, It seems been fixed already :)
 [2012-09-08 15:24 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 21:03:38 2023 UTC