-
Notifications
You must be signed in to change notification settings - Fork 330
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
Write errors are not returned from WriteTo for short compressed files #408
Comments
I am AFC and will be for a few weeks. Just to confirm, you are using the latest version? I seem to recall something like this a while back. |
Yes, the test output included is from running on latest |
klauspost
added a commit
that referenced
this issue
Aug 2, 2021
Fix error forwarding when writing the final block. Fixes #408
klauspost
added a commit
that referenced
this issue
Aug 2, 2021
Fix error forwarding when writing the final block. Fixes #408
klauspost
added a commit
that referenced
this issue
Aug 2, 2021
Fix error forwarding when writing the final block. Fixes #408
klauspost
added a commit
that referenced
this issue
Aug 2, 2021
Fix error forwarding when writing the final block. Fixes #408
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that write errors from
Decoder.WriteTo
are not returned when the compressed input is short. This causesio.Copy
calls to wrongly return success, even though a write has failed. See the test case below for an example.Test output:
The text was updated successfully, but these errors were encountered: