-
Notifications
You must be signed in to change notification settings - Fork 509
Document ZipReader DirectoryEntry behavior and add verification test #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
0d9d82d
f4dddce
a887390
7f911c5
840e58f
c5da416
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,6 +75,12 @@ protected override IEnumerable<ZipEntry> GetEntries(Stream stream) | |||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| 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. | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
| // 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.DirectoryEntry: | |
| // 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. | |
| break; |
Uh oh!
There was an error while loading. Please reload this page.