]> Cypherpunks repositories - gostls13.git/commit
compress/gzip: detect truncated streams
authorJoe Tsai <joetsai@digital-static.net>
Tue, 22 Sep 2015 09:14:28 +0000 (02:14 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 Sep 2015 08:29:13 +0000 (08:29 +0000)
commitb0a1f6462f34c9907ea35813b7ffa0f600646e80
treea2ad7118b4e7f6ac2e45ee1cdd9973c67c978544
parent9deb940d2481396944f090dd9f205f2d5b3d94ee
compress/gzip: detect truncated streams

Reader fails to detect truncated streams since calls to io.ReadFull
do not check if the error is io.EOF.

Change-Id: I052cd03161e43fec17e3d328106c40e17923e52b
Reviewed-on: https://go-review.googlesource.com/14832
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/gzip/gunzip.go
src/compress/gzip/gunzip_test.go