You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When I try to iterate over the entries of the attached file, nothing happens #318
I can reproduce the issue with the archive you provided.
Currently, I don't have the capacity to investigate/fix this. So far, I found that the archive is using the ZIP64 extensions (which ZIPFoundation supports). But for some reason, it's obtaining wrong offsets from the ZIP64 structure that describes the entries. Due to the wrong offsets, creating an iterator for the entries fails.
Since extraction with the macOS built-in archive utility succeeds and also unzip -t doesn't report any errors, I suppose the archive metadata contains some edge cases that currently aren't not covered by ZIP Foundation's ZIP64 support.
If you want to have a look yourself, a good starting point would be Archive.makeIterator & CentralDirectoryStructure.effectiveRelativeOffsetOfLocalHeader.
Activity
weichsel commentedon Apr 28, 2024
I can reproduce the issue with the archive you provided.
Currently, I don't have the capacity to investigate/fix this. So far, I found that the archive is using the ZIP64 extensions (which ZIPFoundation supports). But for some reason, it's obtaining wrong offsets from the ZIP64 structure that describes the entries. Due to the wrong offsets, creating an iterator for the entries fails.
Since extraction with the macOS built-in archive utility succeeds and also
unzip -tdoesn't report any errors, I suppose the archive metadata contains some edge cases that currently aren't not covered by ZIP Foundation's ZIP64 support.If you want to have a look yourself, a good starting point would be
Archive.makeIterator&CentralDirectoryStructure.effectiveRelativeOffsetOfLocalHeader.