]> Cypherpunks repositories - gostls13.git/commit
image/gif: accept LZW encodings that do not have an explicit end marker.
authorNigel Tao <nigeltao@golang.org>
Mon, 29 Jun 2015 06:43:25 +0000 (16:43 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 30 Jun 2015 03:47:51 +0000 (03:47 +0000)
commitb8d2d6b9c0fcd66fe9579d7525d4ec5ecc2d73a3
tree6fd5cc35e18abdde08c628913903b06000c23259
parentfea18f5a341e442783f84703a78924b882aceb5e
image/gif: accept LZW encodings that do not have an explicit end marker.

The spec says this is invalid, but it matches giflib's behavior.

Fixes #9856 (together with https://go-review.googlesource.com/11661).

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