]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.8] image/png: restore Go 1.7 rejection of transparent gray8 images
authorRuss Cox <rsc@golang.org>
Wed, 5 Apr 2017 15:04:46 +0000 (11:04 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 5 Apr 2017 15:26:07 +0000 (15:26 +0000)
commit43fa04c23cb147c4988d4f422f98d30685f2256c
treed45e0a709bd19b8ea1c1112efaf1818ced96bce9
parente35c01b4044130223eb7620589f8bc2b734d2045
[release-branch.go1.8] image/png: restore Go 1.7 rejection of transparent gray8 images

Go 1.7 and earlier rejected these images with chunkOrderError.
Go 1.8 panicked during decoding.
Go 1.9 will handle them successfully.

Make Go 1.8.1 match Go 1.7 and earlier, to remove the panic
without introducing new functionality in a minor release.

Fixes #19553.

Change-Id: I3c73a27aa3932300326273b6b563cdf606f3ab64
Reviewed-on: https://go-review.googlesource.com/39593
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/image/png/reader.go
src/image/png/reader_test.go