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
FileFormatException when opening a Package with over 4GB file on desktop #28955
In order to compress a file over 2GB one must use a write-only ZipArchive, due to https://github.com/dotnet/corefx/issues/11669. When an entry is open for Write-only, the entry will never allocate space for the Zip64 extended information extra field in the local file header, since it doesn't know at the time the file is opened if it will need 64-bit lengths. As a result, files over 4GB written to ZipArchives will always use the DataDescriptor at the end of the entry to record their size.
When using this DataDescriptor we were failing to set the version needed to extract to indicate Zip64 was required, but this should have been done since we were using 64-bit lengths in the data descriptor which were defined in the ZIP64 version of the AppNote.txt.
Activity