Navigation Menu

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

image/jpeg: decoding fails when image ends with "\xff\x00\xff\xd9" #4705

Closed
nigeltao opened this issue Jan 25, 2013 · 3 comments
Closed

image/jpeg: decoding fails when image ends with "\xff\x00\xff\xd9" #4705

nigeltao opened this issue Jan 25, 2013 · 3 comments
Milestone

Comments

@nigeltao
Copy link
Contributor

The person who sent me the attached JPEG says that it's viewable from C (presumably
libjpeg). Go fails with "unknown marker" because the "\xff\x00" is
interpreted as a marker instead of a 0 byte for the Huffman decoder. I'm not sure yet if
the image is actually spec-compliant or if libjpeg is being liberal in what it accepts.

Attachments:

  1. sample.jpg (5063 bytes)
@rsc
Copy link
Contributor

rsc commented Jan 30, 2013

Comment 1:

Labels changed: added priority-later, removed priority-triage.

@nigeltao
Copy link
Contributor Author

nigeltao commented Feb 1, 2013

Comment 2:

Changing summary from "jpeg:" to "image/jpeg:".

@nigeltao
Copy link
Contributor Author

Comment 3:

This issue was closed by revision a3d1c1b.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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

3 participants