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
image/jpeg: mishandles progressive JPEG #6767
Labels
Milestone
Comments
Labels changed: added priority-someday, removed priority-triage. Owner changed to @nigeltao. |
The file is a progressive JPEG, a feature only recently supported. The error occurs in the first scan decoding the huffman block. I suspect the problem is just a bug in the new code. If Nigel doesn't get to it first, I'll dig into it when I have my JPEG standard book handy. Other tests I've run show this to be a syntactically correct JPEG. Here's the dump of the piece through the first scan section. SOI APP0 len=16 DQT: p = 0, table = 0 DQT: p = 0, table = 1 SOF2: Progressive DCT - Huffman coding 990 wide, 1345 high, 8 deep, 3 components component 1: 2 hsample, 2 vsample, quantization table 0 component 2: 1 hsample, 1 vsample, quantization table 1 component 3: 1 hsample, 1 vsample, quantization table 1 DHT: class = 0, table = 0 SOS: 1 components component 1: 0 DC, 0 AC start spectral 0 end spectral 0 ah = 0, al = 0 sequence length 22370 with 35 stuffs Should be fixed for Go 1.3 if possible. I suspect this isn't the only file that causes the problem. Labels changed: added release-go1.3, removed priority-someday, release-none. Status changed to Accepted. |
This issue was closed by revision ea34ca7. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by dan.pupius:
Attachments:
The text was updated successfully, but these errors were encountered: