1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:14:42 -07:00
go/src/image
Nigel Tao 9ef65dbe06 image/gif: fix frame-inside-image bounds checking.
The semantics of the Go image.Rectangle type is that the In and
Intersects methods treat empty rectangles specially. There are multiple
valid representations of an empty image.Rectangle. One of them is the
zero image.Rectangle but there are others. They're obviously not all
equal in the == sense, so we shouldn't use != to check GIF's semantics.

This change will allow us to re-roll
a855da29db "image: fix the overlap check
in Rectangle.Intersect" which was rolled back in
14347ee480.

Change-Id: Ie1a0d092510a7bb6170e61adbf334b21361ff9e6
Reviewed-on: https://go-review.googlesource.com/36639
Run-TryBot: Nigel Tao <nigeltao@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2017-02-10 03:31:09 +00:00
..
color image/color: improve speed of RGBA methods 2016-10-25 07:51:17 +00:00
draw image/draw: add FloydSteinberg Drawer example 2016-09-21 00:08:58 +00:00
gif image/gif: fix frame-inside-image bounds checking. 2017-02-10 03:31:09 +00:00
internal/imageutil image/draw: remove some bounds checks from DrawYCbCr 2016-04-17 06:25:28 +00:00
jpeg image/jpeg: improve performance when encoding *image.YCbCr 2017-02-01 21:38:59 +00:00
png image/png: implement grayscale transparency. 2016-10-28 02:10:13 +00:00
testdata image/jpeg: reconstruct progressive images even if incomplete. 2016-03-31 00:33:24 +00:00
decode_example_test.go
decode_test.go image/jpeg: reconstruct progressive images even if incomplete. 2016-03-31 00:33:24 +00:00
format.go
geom_test.go Revert "image: fix the overlap check in Rectangle.Intersect." 2017-02-07 15:21:56 +00:00
geom.go Revert "image: fix the overlap check in Rectangle.Intersect." 2017-02-07 15:21:56 +00:00
image_test.go
image.go image: add NYCbCrA types. 2015-10-11 11:07:25 +00:00
names.go
ycbcr_test.go
ycbcr.go image: add NYCbCrA types. 2015-10-11 11:07:25 +00:00