sharpcompress icon indicating copy to clipboard operation
sharpcompress copied to clipboard

ReaderFactory not iterating over big entries

Open jbrockerville opened this issue 1 year ago • 2 comments

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

jbrockerville avatar Jan 02 '24 22:01 jbrockerville

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

adamhathcock avatar Jan 08 '24 09:01 adamhathcock

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

DannyBoyk avatar Jan 29 '24 14:01 DannyBoyk