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
Added unit test for inflate with Z_FINISH and no window. #1603
Conversation
This PR should fail and PR #1602 should fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks like harakiri code, but for the purpose of simplifying the libgit2 failure, this does require no external code. I'm not sure it is good idea to separate these as two PRs due to chicken and egg dilemma. |
The other PR can be rebased after this is merged. |
This test decompresses a small git pack object with the text: "alone in the dark". By providing inflate with Z_FINISH, it should not use a sliding window according to zlib docs. We purposefully limit the read buffer size to trigger CHECK mode to bail early.
c093c40
to
f895b87
Compare
This test decompresses a small git pack object with the text: "alone in the dark". By providing inflate with
Z_FINISH
, it should not use a sliding window according to zlib docs. We purposefully limit the read buffer size to triggerCHECK
mode to bail early.