image/gif: gif decoding fails on 1x1 pixel image that renders correctly in browser #56771
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Playground to reproduce is here:
https://go.dev/play/p/itdNnujIVfy
I included the image as a base64 data url in the playground so you can copy and paste that directly into the browser.
For convenience, I also uploaded it here:
https://test.craig.cloud/test-blank.gif
What did you expect to see?
Expected to see no decode error.
What did you see instead?
The image renders correctly in a browser. Seems perhaps related to #16146, but it is failing at a different point.
The specific failure occurs at
go/src/image/gif/reader.go
Line 448 in 8c17505
The text was updated successfully, but these errors were encountered: