]> Cypherpunks repositories - gostls13.git/commit
image/gif: accept an out-of-bounds transparent color index.
authorNigel Tao <nigeltao@golang.org>
Thu, 28 Apr 2016 07:19:31 +0000 (17:19 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 29 Apr 2016 00:01:22 +0000 (00:01 +0000)
commit4618dd8704b868a095a98ee8beaf465578aaec30
tree56a5f2592e21ea32da72862a854693bb32ecc9d3
parentac0ee77d630c4a692b02cad630a61e974b0c52ce
image/gif: accept an out-of-bounds transparent color index.

This is an error according to the spec, but Firefox and Google Chrome
seem OK with this.

Fixes #15059.

Change-Id: I841cf44e96655e91a2481555f38fbd7055a32202
Reviewed-on: https://go-review.googlesource.com/22546
Reviewed-by: Rob Pike <r@golang.org>
src/image/gif/reader.go
src/image/gif/reader_test.go