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

Include missing zlib compression level header checks #621

Merged
merged 2 commits into from Jun 22, 2021
Merged

Include missing zlib compression level header checks #621

merged 2 commits into from Jun 22, 2021

Conversation

rhodosaur
Copy link
Contributor

Should fix nbgv failing for repos that have objects compressed with zlib levels 2-5 (header 0x78 0x5E) and 7-9 (0x78 0xDA). If required, I can embed zz files of different compression levels and implements tests for those.

Fixes #619

Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Looks good to me. Any concerns, @qmfrederik ?

@AArnott
Copy link
Collaborator

AArnott commented Jun 21, 2021

I'm rebasing your commits on v3.4 so we can fix v3.4 rather than wait till v3.5 which is what master is currently targeting.

@AArnott AArnott changed the base branch from master to v3.4 June 21, 2021 00:11
@AArnott AArnott added this to the v3.4 milestone Jun 21, 2021
@qmfrederik
Copy link
Contributor

Looks good! .NET 6 will have native ZlibStream support, so it may make sense to use that implementation when it ships: dotnet/runtime@d3beb60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitException thrown in ZLibStream (Invalid ZLIB header?)
3 participants