Skip to content

Avoid a panic when skipping truncated ZIP members - #57

Merged
andrew merged 1 commit into
mainfrom
fix/zip-stream-open-eof
Oct 21, 2026
Merged

andrew merged 1 commit into
mainfrom
fix/zip-stream-open-eof

Conversation

@andrew

@andrew andrew commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Treat io.EOF while opening a ZIP member as io.ErrUnexpectedEOF. A central-directory entry pointing beyond the archive could otherwise make Next accept a truncated member and panic while closing a nil reader.

The regression covers both reading the member and skipping it through OpenStreamBytes.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew added this pull request to stack #60 October 21, 2026 09:42
@andrew
andrew merged commit 9d21550 into main Oct 21, 2026
6 checks passed
@andrew
andrew deleted the fix/zip-stream-open-eof branch October 21, 2026 09:45
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.

2 participants