Skip to content
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

fix(zip): 0 in zip64 local sizes using descriptors #750

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

piksel
Copy link
Member

@piksel piksel commented Apr 28, 2022

In #736, the header tests were changed to allow for 0 being passed as the Zip64 sizes when testing the archive. That is actually the correct value as per the spec, and hence this updates the output of ZipFormat.WriteLocalHeader to write 0 when using descriptors together with Zip64.

Fixes #744

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #750 (713db5e) into master (aee3b44) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #750   +/-   ##
=======================================
  Coverage   73.83%   73.83%           
=======================================
  Files          69       69           
  Lines        8355     8355           
=======================================
  Hits         6169     6169           
  Misses       2186     2186           
Impacted Files Coverage Δ
src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs 77.28% <100.00%> (ø)
src/ICSharpCode.SharpZipLib/Zip/ZipFormat.cs 89.54% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aee3b44...713db5e. Read the comment docs.

@piksel piksel merged commit e589b5e into master Apr 28, 2022
@carlreid
Copy link

Any thoughts on when a new release will be made which includes this fix?

@SourceproStudio

This comment was marked as off-topic.

@piksel
Copy link
Member Author

piksel commented May 24, 2022

@carlreid no release date, but I should have the time to do so pretty soon. sorry that I cannot be more specific.

@carlreid
Copy link

sorry that I cannot be more specific.

No stress! We can wait a little more

@carlreid carlreid mentioned this pull request Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different binary produced when producing ZIP to Azure Blob Stream
3 participants