]> Cypherpunks repositories - gostls13.git/commit
compress/zlib: detect truncated streams
authorJoe Tsai <joetsai@digital-static.net>
Tue, 22 Sep 2015 08:17:01 +0000 (01:17 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Sep 2015 22:47:28 +0000 (22:47 +0000)
commitb1797390b95d1ffd3d97b19532bf451719d42fd5
tree048083a66d9f3447c496c6f0f6f11ed772dbde56
parent0c1f0549b893d9ddaab42a7765ba82234fbcc10d
compress/zlib: 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: I86c497519daaaccefc6eb5617ddcd8fd3b99f51b
Reviewed-on: https://go-review.googlesource.com/14835
Reviewed-by: Nigel Tao <nigeltao@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/compress/zlib/reader.go
src/compress/zlib/reader_test.go