1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:56:12 -07:00
go/src/image/gif
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
..
reader_test.go image/gif: check handling of truncated GIF files 2016-10-05 04:28:45 +00:00
reader.go image/gif: check handling of truncated GIF files 2016-10-05 04:28:45 +00:00
writer_test.go image/gif: map/slice literals janitoring 2015-09-04 11:58:15 +00:00
writer.go image/gif: avoid unused assignment 2015-08-24 16:17:42 +00:00