diff options
| author | Jeff R. Allen <jra@nella.org> | 2015-12-05 21:06:05 +0600 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-10-05 04:28:45 +0000 |
| commit | d1d798dd15e7abbeab335804bd6dfaec6c016018 (patch) | |
| tree | 7538a8dc2dfc310738e8ebc754941832a3df12a4 /src/encoding | |
| parent | a39920fdbbeca653a8b2ac52678378d260e2d396 (diff) | |
| download | go-d1d798dd15e7abbeab335804bd6dfaec6c016018.tar.xz | |
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>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
