Bug #73719 [Fbk->NoF]: Suspect memory issue with certain tar.gz file / PharData
| From: | php-bugs at lists dot php dot net | Date: | Sun, 25 Oct 2020 04:22:13 +0000 |
| Subject: | Bug #73719 [Fbk->NoF]: Suspect memory issue with certain tar.gz file / PharData | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229911@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73719&edit=1
ID: 73719
Updated by: php-bugs@lists.php.net
Reported by: tklingenberg at lastflood dot net
Summary: Suspect memory issue with certain tar.gz file /
PharData
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PHAR related
Operating System: Tested on Ubuntu 16.04
PHP Version: 7.0.14
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-10-13 12:50:02] cmb@php.net
<https://github.com/netz98/n98-magerun/issues/879>
has been closed
as resolved; is there still an issue with PharData?
------------------------------------------------------------------------
[2016-12-27 07:01:45] stas@php.net
Don't see security problem here.
------------------------------------------------------------------------
[2016-12-11 22:29:06] tklingenberg at lastflood dot net
Description:
------------
One user reported an issue that a tar-gz data-file for the Magento application didn't run with
Magerun that uses Composer which then uses the PharData class under the hood.
File in question is:
URL: https://sourceforge.net/projects/mageloads/files/assets/1.9.2.4/magento-sample-data-1.9.2.4.tar.gz
SHASUM: `5ad29dc3df38d21b2407c49f66d5308b01961d60
Creating the instance based on that file:
php -r '$p = new PharData($argv[1]);' -- magento-sample-data-1.9.2.4.tar.gz
Creates the always reproduceable error:
PHP Fatal error: Allowed memory size of -1 bytes exhausted (tried to allocate 18446744073709543424
bytes) in Command line code on line 1
This large number looked suspicious to me so I reported this under security. I have not further
looked into it.
The tar-file itself is somewhat broken, if I verify it on my system I get some errors:
$ tar -tzf magento-sample-data-1.9.2.4.tar.gz >/dev/null
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I hope the information provided is useful.
Ref; https://github.com/netz98/n98-magerun/issues/879
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73719&edit=1