ReaderFactory not iterating over big entries #606

Closed
opened 2026-01-29 22:14:28 +00:00 by claunia · 2 comments
Owner

Originally created by @jbrockerville on GitHub (Jan 2, 2024).

I've encountered an issue with the ReaderFactory and ZIP archives with "big" entries. If an archive has a sufficiently big enough entry, the reader fails to iterate over all the entries. No error. Just no next entry and drops out of the loop. The ArchiveFactory seems fine. Please see the attached code for generating the archive ("data/data.py") and reproducing the bug. Here is the output I get:

Entries via ReaderFactory...
  bin1.bin
Entries via ArchiveFactory...
  bin1.bin
  a.txt
  c.txt

BigArchive.zip

Originally created by @jbrockerville on GitHub (Jan 2, 2024). I've encountered an issue with the `ReaderFactory` and ZIP archives with "big" entries. If an archive has a sufficiently big enough entry, the reader fails to iterate over all the entries. No error. Just no next entry and drops out of the loop. The `ArchiveFactory` seems fine. Please see the attached code for generating the archive ("data/data.py") and reproducing the bug. Here is the output I get: ``` Entries via ReaderFactory... bin1.bin Entries via ArchiveFactory... bin1.bin a.txt c.txt ``` [BigArchive.zip](https://github.com/adamhathcock/sharpcompress/files/13814299/BigArchive.zip)
claunia added the bugup for grabs labels 2026-01-29 22:14:28 +00:00
Author
Owner

@adamhathcock commented on GitHub (Jan 8, 2024):

Maybe https://github.com/adamhathcock/sharpcompress/pull/799 will address

@adamhathcock commented on GitHub (Jan 8, 2024): Maybe https://github.com/adamhathcock/sharpcompress/pull/799 will address
Author
Owner

@DannyBoyk commented on GitHub (Jan 29, 2024):

Latest SharpCompress code produces identical results for ReaderFactory and ArchiveFactory, so it appears this can be closed out.

@DannyBoyk commented on GitHub (Jan 29, 2024): Latest SharpCompress code produces identical results for ReaderFactory and ArchiveFactory, so it appears this can be closed out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#606