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

Add support for Filename field in GZip #351

Merged
merged 2 commits into from Apr 27, 2021

Conversation

piksel
Copy link
Member

@piksel piksel commented Jun 15, 2019

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.

Comment on lines -289 to -293
if (readByte < 0)
{
throw new EndOfStreamException("EOS reading GZIP header");
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReadLeByte() never returns anything but a byte, it will itself throw an exception in the case of an EOS

@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #351 (9f2f30a) into master (8ab21b0) will increase coverage by 0.12%.
The diff coverage is 88.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #351      +/-   ##
==========================================
+ Coverage   73.13%   73.25%   +0.12%     
==========================================
  Files          68       68              
  Lines        8710     8712       +2     
==========================================
+ Hits         6370     6382      +12     
+ Misses       2340     2330      -10     
Impacted Files Coverage Δ
...Lib/Zip/Compression/Streams/InflaterInputStream.cs 69.03% <ø> (ø)
...rc/ICSharpCode.SharpZipLib/GZip/GzipInputStream.cs 72.27% <87.50%> (+12.10%) ⬆️
...c/ICSharpCode.SharpZipLib/GZip/GzipOutputStream.cs 91.46% <87.50%> (-1.40%) ⬇️
src/ICSharpCode.SharpZipLib/GZip/GZipConstants.cs 100.00% <100.00%> (+100.00%) ⬆️
...ICSharpCode.SharpZipLib/BZip2/BZip2OutputStream.cs 78.74% <0.00%> (-0.79%) ⬇️
...Code.SharpZipLib/Zip/Compression/DeflaterEngine.cs 87.12% <0.00%> (-0.34%) ⬇️
...CSharpCode.SharpZipLib/Zip/Compression/Inflater.cs 73.72% <0.00%> (+0.42%) ⬆️

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 8ab21b0...9f2f30a. Read the comment docs.

@piksel piksel merged commit d9fb8a4 into icsharpcode:master Apr 27, 2021
@piksel piksel deleted the gzip-filename branch April 27, 2021 19:23
HowToDoThis added a commit to HowToDoThis/SharpZipLib that referenced this pull request Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Original filename field in gzip header
1 participant