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

Enhance data descriptor handling by adding length check #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johan-tribus
Copy link

Previously, a chunk could coincidentally contain a data descriptor signature in an unexpected position, causing the decoder to halt and throw an unexpected EOF error when reading a .zip stream archive. This update introduces a length check on the compressed size, allowing the decoder to continue processing if there are still bytes left to be deflated.

Previously, a chunk could coincidentally contain a data descriptor
signature in an unexpected position, causing the decoder to halt and
throw an unexpected EOF error when reading a .zip stream archive. This
update introduces a length check on the compressed size, allowing the
decoder to continue processing if there are still bytes left to be
deflated.
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.

1 participant