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 #defines for zip constants. Fix bug in GOOD macro, and missing check for stored method #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

woolfie
Copy link

@woolfie woolfie commented Nov 4, 2020

#defines are introduced for zip constants to improve readability.

bugfix1: In the course of unzipping a record with a data descriptor and trying the various possibilities, additional bytes can be read into the input buffer by the load() macro causing in->count to jump by CHUNK bytes. To avoid this, the value of in->count is stored in a separate local variable for checking in the revised GOOD() macro.

bugfix2: Deferred lengths (data descriptors) are also seen for "stored" method with no compression, so ensure that is supported too by correcting a missing if check.

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.

None yet

1 participant