Skip to content

internal/inspect: handle reads after EOF in trackReader - #729

Open
itsVentie wants to merge 1 commit into
FiloSottile:mainfrom
itsVentie:fix-inspect-panic
Open

internal/inspect: handle reads after EOF in trackReader#729
itsVentie wants to merge 1 commit into
FiloSottile:mainfrom
itsVentie:fix-inspect-panic

Conversation

@itsVentie

Copy link
Copy Markdown

Fixes #719

trackReader.Read previously panicked if called again after a read returned io.EOF. This updates trackReader to adhere to the io.Reader contract by returning (0, io.EOF) on subsequent reads.

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.

age-inspect: panic: non-EOF read after EOF

1 participant