Skip to content

Regression between 0.5.14 and 0.5.15 in decompressing some valid ZIP archives #548

@hannesj

Description

@hannesj

Seems like this is caused by #508. I've attached a file which according to unzip is valid, while adm-zip starts throwing when decompressing it starting from version 0.5.14 with the following error message:

     Error: ADM-ZIP: No descriptor present
      at Object.DESCRIPTOR_NOT_EXIST (util/errors.js:56:16)
      at crc32OK (zipEntry.js:42:36)
      at decompress (zipEntry.js:121:26)
      at Object.getData (zipEntry.js:320:24)
      at Context.<anonymous> (test/issue_533.test.js:21:37)
      at process.processImmediate (node:internal/timers:483:21)

testfile.zip

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