wapmorgan/UnifiedArchive

Extract tar.gz memory exhaustion

dbpolito opened this issue · 2 comments

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

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

@dbpolito need sample tar.gz file