Skip to content

Question: Is there any protection against "zip bombs" #652

@pam-param-pam

Description

@pam-param-pam

Hi, i made a simple zip bomb with 100k entries each 1 byte in size just to see how this library will work.
I then tried parsing it in a web worker:

  const reader = new zip.ZipReader(
            new zip.HttpReader(url, { useRangeHeader: true })
         )
 const entries = await reader.getEntries()

The worker RAM usage exploded to almost 3GB!
I suppose its due to eader.getEntries()

Is there any way to inspect the zip file first without allocating all the ram needed to create all the entries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions