UnifiedArchive icon indicating copy to clipboard operation
UnifiedArchive copied to clipboard

Extract tar.gz memory exhaustion

Open dbpolito opened this issue 2 years ago • 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

dbpolito avatar Jan 07 '22 21:01 dbpolito

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

wapmorgan avatar Jan 08 '22 19:01 wapmorgan

@dbpolito need sample tar.gz file

wapmorgan avatar Jun 27 '22 22:06 wapmorgan