[PR #205] Add zip64 support for ZipArchive extraction #894

Open
opened 2026-01-29 22:18:05 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/205

State: closed
Merged: Yes


I've taken a first cut at some limited zip64 support. It is extract only and only on the Archive API at this point.

Note: I'm casting 8 byte values to long instead of supporting the full ulong as it simplifies the implementation quite a bit. Things like Reader.Seek take a long directly, it's easy enough to cover that with multiple reads but I ended up backing away as it made the change much larger for minimal benefit (9 Exabyte archive size limitation instead of 18 etc). Also CLS compliance means we can't expose ulong. More than happy to revisit that if required.

**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/205 **State:** closed **Merged:** Yes --- I've taken a first cut at some limited zip64 support. It is extract only and only on the Archive API at this point. Note: I'm casting 8 byte values to `long` instead of supporting the full `ulong` as it simplifies the implementation quite a bit. Things like `Reader.Seek` take a `long` directly, it's easy enough to cover that with multiple reads but I ended up backing away as it made the change much larger for minimal benefit (9 Exabyte archive size limitation instead of 18 etc). Also CLS compliance means we can't expose `ulong`. More than happy to revisit that if required.
claunia added the pull-request label 2026-01-29 22:18:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#894