-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps up
Description
- An os.File has GenerateIndex() called on
- This puts the os.File's underlying Reader at EOF
- If one then calls NewReadOnly the check here falls through to the io.Reader, sees the EOF and aborts
Observe the workaround at lines 81~83 in the sequence here. A potential fix is to rewind when the argument is a ReadSeeker, before dropping to the Reader part.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps up