-
Notifications
You must be signed in to change notification settings - Fork 141
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
Use io::Write::write_all #94
Conversation
It's incorrect to use io::Write::write and ignore how many bytes were actually written in the underlying writer.
This snippet demonstrates the issue, extracted from me tinkering in base64 to see what was going on:
With debug logging in base64 added to show when the streaming encoder can't write the full input it's given, I get this:
I'm working on getting a failing test case |
I changed the |
I added your commit, this is now ready to be reviewed. |
Merging. |
@bvssvni Can you make a new png release, please? |
It's incorrect to use
io::Write::write
and ignore how many bytes were actually written in the underlying writer.