]> Cypherpunks repositories - gostls13.git/commit
image/png: allow both PLTE and tRNS chunks for TrueColor
authorNigel Tao <nigeltao@golang.org>
Fri, 19 Aug 2022 06:01:33 +0000 (16:01 +1000)
committerGopher Robot <gobot@golang.org>
Mon, 29 Aug 2022 15:11:31 +0000 (15:11 +0000)
commit63e129ba1c458db23f0752d106ed088a2cf38360
tree548702e954951d88f2c3a8ace2846d5142ba0fbb
parenta1c9783ca1a98eef0fbfa46f8027e711b471b600
image/png: allow both PLTE and tRNS chunks for TrueColor

Prior to this commit, png.Decode would allow TrueColor PNG images that
have one but not both of PLTE and tRNS chunks.

Fixes #54142

Change-Id: I259c1fff86a0aa5640dbadf7ad834e05fbd1430c
Reviewed-on: https://go-review.googlesource.com/c/go/+/424916
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <nigeltao@google.com>
src/image/png/reader.go