Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract tar.gz memory exhaustion #32

Open
dbpolito opened this issue Jan 7, 2022 · 2 comments
Open

Extract tar.gz memory exhaustion #32

dbpolito opened this issue Jan 7, 2022 · 2 comments

Comments

@dbpolito
Copy link

dbpolito commented Jan 7, 2022

Describe the bug

Error:

Allowed memory size of 536870912 bytes exhausted (tried to allocate 512913866 bytes)

The error explodes here: PharData

Configration (please complete the following information):

  • OS: alpine
  • Version of library: latest

To Reproduce

Try to extract a file bigger than you max memory limit

It seems it's loading the entire file in memory, is this expected?

Interesting enough it works when extracting big gzip files

@wapmorgan
Copy link
Owner

Looks like zip or gzip-bomb and relates to Phar library, it's not UA issue

@wapmorgan
Copy link
Owner

@dbpolito need sample tar.gz file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants