Skip to content

Fix: add size limit when reading data from a zip file entry#1673

Merged
netomi merged 3 commits intomasterfrom
fix-reading-entry
Mar 6, 2026
Merged

Fix: add size limit when reading data from a zip file entry#1673
netomi merged 3 commits intomasterfrom
fix-reading-entry

Conversation

@netomi
Copy link
Contributor

@netomi netomi commented Mar 5, 2026

When reading a zip file entry the declared size is checked which might not be correctly reflecting the actual number of bytes of the entry.

This PR wraps the input stream into a SizeLimitInputStream to ensure no more bytes are read as declared.

@netomi netomi merged commit 1241575 into master Mar 6, 2026
4 checks passed
@netomi netomi deleted the fix-reading-entry branch March 6, 2026 19:11
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