Skip to content
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

jpeg decoding fails if given Reader is unbuffered #665

Closed
gopherbot opened this issue Mar 13, 2010 · 2 comments
Closed

jpeg decoding fails if given Reader is unbuffered #665

gopherbot opened this issue Mar 13, 2010 · 2 comments

Comments

@gopherbot
Copy link

by bertrand.marlier:

Decode function from package image.jpeg wrongly mixes use of Reader r
transmitted as parameter and buffered Reader created in d.r if Reader
parameter is unbuffered.

r should not be used in the three "io.ReadFull(r, d.tmp[0:2])" calls made.
calling "io.ReadFull(d.r, d.tmp[0:2])" instead fixes the problem.
@griesemer
Copy link
Contributor

Comment 1:

Owner changed to nigel...@golang.org.

Status changed to Accepted.

@griesemer
Copy link
Contributor

Comment 2:

This issue was closed by revision 926f59b.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants