Changes before error encountered

Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-29 14:06:03 +00:00
parent 0d9d82d7e6
commit f4dddcec8e
2 changed files with 45 additions and 0 deletions

View File

@@ -75,6 +75,12 @@ public class ZipReader : AbstractReader<ZipEntry, ZipVolume>
);
}
break;
// DirectoryEntry headers in the central directory are intentionally skipped.
// In streaming mode, we can only read forward, and DirectoryEntry headers
// reference LocalEntry headers that have already been processed. The file
// data comes from LocalEntry headers, not DirectoryEntry headers.
// For multi-volume ZIPs where file data spans multiple files, use ZipArchive
// instead, which requires seekable streams.
case ZipHeaderType.DirectoryEnd:
{
yield break;