]> Cypherpunks repositories - gostls13.git/commit
image/gif: check that individual frame's bounds are within the overall
authorNigel Tao <nigeltao@golang.org>
Wed, 29 Apr 2015 03:51:49 +0000 (13:51 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 29 Apr 2015 04:42:01 +0000 (04:42 +0000)
commit6abfdc3fdd49d7691e1cdc3028849fa40e4a41f2
treec01c595fa57a5d5bff9739db32bb6ca22ac1d124
parenta0cff2989ae15cd2cc29bf1d956c833d1b28593c
image/gif: check that individual frame's bounds are within the overall
GIF's bounds.

Also change the implicit Config Width and Height to be the
Rectangle.Max, not the Dx and Dy, of the first frame's bounds. For the
case where the first frame's bounds is something like (5,5)-(8,8), the
overall width should be 8, not 3.

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