]> Cypherpunks repositories - gostls13.git/commit
image/gif: do not allow pixels outside the current palette
authorJeff R. Allen <jra@nella.org>
Mon, 1 Jul 2013 04:11:45 +0000 (14:11 +1000)
committerNigel Tao <nigeltao@golang.org>
Mon, 1 Jul 2013 04:11:45 +0000 (14:11 +1000)
commit8192017e14a0902293717ef3c847672a9b9a0da4
treea7aa25004a4e828834237707484b0abc7928c4a3
parent0a4fc122de2d0c5da7e89feb7c079e602612a2fd
image/gif: do not allow pixels outside the current palette

After loading a frame of a GIF, check that each pixel
is inside the frame's palette.

Fixes #5401.

R=nigeltao, r
CC=golang-dev
https://golang.org/cl/10597043
src/pkg/image/gif/reader.go
src/pkg/image/gif/reader_test.go