1
0
mirror of https://github.com/golang/go synced 2024-09-30 17:38:33 -06:00
go/src/image
Jeff R. Allen d1d798dd15 image/gif: check handling of truncated GIF files
All the prefixes of the testGIF produce errors today,
but they differ wildly in which errors: some are io.EOF,
others are io.ErrUnexpectedEOF, and others are gif-specific.
Make them all gif-specific to explain context, and make
any complaining about EOF be sure to mention the EOF
is unexpected.

Fixes #11390.

Change-Id: I742c39c88591649276268327ea314e68d1de1845
Reviewed-on: https://go-review.googlesource.com/17493
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-10-05 04:28:45 +00:00
..
color image/color: optimize RGBToYCbCr 2016-04-27 06:19:37 +00:00
draw image/draw: add FloydSteinberg Drawer example 2016-09-21 00:08:58 +00:00
gif image/gif: check handling of truncated GIF files 2016-10-05 04:28:45 +00:00
internal/imageutil image/draw: remove some bounds checks from DrawYCbCr 2016-04-17 06:25:28 +00:00
jpeg image/jpeg: reconstruct progressive images even if incomplete. 2016-03-31 00:33:24 +00:00
png image/png: improve compression by skipping filter for paletted images 2016-09-27 14:01:20 +00:00
testdata image/jpeg: reconstruct progressive images even if incomplete. 2016-03-31 00:33:24 +00:00
decode_example_test.go image/color: tweak the YCbCr to RGBA conversion formula. 2015-07-15 05:29:00 +00:00
decode_test.go image/jpeg: reconstruct progressive images even if incomplete. 2016-03-31 00:33:24 +00:00
format.go
geom_test.go image: change Rectangle.Eq to return true for all empty rectangles, even 2015-02-18 23:50:09 +00:00
geom.go image: make Rectangle implement Image. 2015-03-04 00:03:46 +00:00
image_test.go
image.go image: add NYCbCrA types. 2015-10-11 11:07:25 +00:00
names.go
ycbcr_test.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00
ycbcr.go image: add NYCbCrA types. 2015-10-11 11:07:25 +00:00