]> Cypherpunks repositories - gostls13.git/commit
compress/flate: detect truncated streams
authorJoe Tsai <joetsai@digital-static.net>
Tue, 22 Sep 2015 08:28:09 +0000 (01:28 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 Sep 2015 08:28:17 +0000 (08:28 +0000)
commit9deb940d2481396944f090dd9f205f2d5b3d94ee
tree356764f91f73581f03c4baee1ee19e79227073d1
parent646401bdf05e611f85f36b00b00fd28639181061
compress/flate: detect truncated streams

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

Change-Id: I0634e0d8de1ab04e8f93242c27a9f89e57743e87
Reviewed-on: https://go-review.googlesource.com/14833
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/flate/flate_test.go
src/compress/flate/inflate.go