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/png: panic in reader.go #19738
Comments
Does this fail on tip? It may be a duplicate of #19553 |
@dgryski, good hunch. It doesn't panic anymore on tip 73912a1 $ go version && go run main.go && echo success
go version devel +73912a1 Mon Mar 27 18:41:30 2017 -0600 darwin/amd64
2017/03/28 09:30:29 Texture 1
2017/03/28 09:30:29 size = 737
2017/03/28 09:30:29 format = jpeg
2017/03/28 09:30:29 err = <nil>
2017/03/28 09:30:29
2017/03/28 09:30:29 Texture 2
2017/03/28 09:30:29 size = 1031
2017/03/28 09:30:29 format = png
2017/03/28 09:30:29 err = <nil>
success @Deleplace please get the latest from the master branch. |
Can't reproduce on the latest. Please reopen if it persists. |
Thanks! I had performed a quick search for "png decode" in issues, but for some reason I had not seen #19553. It looks the same, I will try on tip. |
Not reproduced on recent 4b50c81 . Great! |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
image.Decode(r2)
wherer2
is reading a PNG image that looks ok to me.See attached source.
(
texture1
,r1
are there just to demonstrate the happy path).See self-contained code at https://play.golang.org/p/gkXmcSjbwq
What did you expect to see?
At best, no error at all.
Otherwise, image.Decode should return an error with some nice message.
What did you see instead?
The text was updated successfully, but these errors were encountered: