]> Cypherpunks repositories - gostls13.git/commit
image/gif: reject a GIF image if frame bounds larger than image bounds
authorJeff R. Allen <jra@nella.org>
Fri, 22 Mar 2013 16:30:31 +0000 (09:30 -0700)
committerRob Pike <r@golang.org>
Fri, 22 Mar 2013 16:30:31 +0000 (09:30 -0700)
commit87700cf75d660597e70d2eb7e3760f12232562ff
tree2bb69a2f961a5cedbba37981136a8ffe87e2ca66
parent3b9702c9c8a7e69e5af9b6dafd2932228d6b3210
image/gif: reject a GIF image if frame bounds larger than image bounds

The GIF89a spec says: "Each image must fit within the
boundaries of the Logical Screen, as defined in the
Logical Screen Descriptor." Also, do not accept
GIFs which have too much data for the image size.

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