kmalakoff / kmalakoff/zip-iterator
zip-iterator fails to extract archive
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
This issue came up via the module usage in fast-extract and was first reported at kmalakoff/fast-extract#83:
On MacOS 26, running Node v20.19.5, with zip-iterator@3.1.1, the archive found at https://github.com/pyocd/pyOCD/releases/download/v0.42.0/pyocd-macos-0.42.0.zip is suffering from the following exception:
Exception has occurred: Error: unexpected end of file
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at Zlib.zlibOnError [as onerror] (node:zlib:189:17)
at Zlib.callbackTrampoline (node:internal/async_hooks:130:17)
at processChunkSync (node:zlib:415:12)
at zlibBufferSync (node:zlib:178:12)
at Object.syncBufferWrapper [as inflateRawSync] (node:zlib:767:14)
at inflateRaw (node_modules/extract-base-iterator/dist/esm/shared/compat.js:195:21)
at ZipExtract.processDeflateDataDescriptor (node_modules/zip-iterator/dist/esm/zip/ZipExtract.js:391:34)
at ZipExtract.processFileData (node_modules/zip-iterator/dist/esm/zip/ZipExtract.js:304:29)
This problem cannot be reproduced with zip-iterator@2.1.18.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with Node v20.19.5 and the linked pyOCD archive, then start at ZipExtract.processFileData and processDeflateDataDescriptor in the stack trace. Compare the behavior with zip-iterator@2.1.18 and inspect the related inflateRaw call in extract-base-iterator. Done means the archive extracts successfully on the reported setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100