]> Cypherpunks repositories - gostls13.git/commit
compress: update documentation regarding footer verification
authorJoe Tsai <joetsai@digital-static.net>
Mon, 28 Mar 2016 09:29:18 +0000 (02:29 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Mon, 9 May 2016 19:19:24 +0000 (19:19 +0000)
commit7ba54d45732219af86bde9a5b73c145db82b70c6
tree56d93ba8048742f4b3b34bea965327c5e910f26a
parent5934523e75e2aa3725c4e709be56d9e84c472bfe
compress: update documentation regarding footer verification

Address two documentation issues:
1) Document that the GZIP and ZLIB footer is only verified when the
reader has been fully consumed.
2) The zlib reader is guaranteed to not read past the EOF if the
input io.Reader is also a io.ByteReader. This functionality was
documented in the flate and gzip packages but not on zlib.

Fixes #14867

Change-Id: I43d46b93e38f98a04901dc7d4f18ed2f9e09f6fb
Reviewed-on: https://go-review.googlesource.com/21218
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/compress/gzip/gunzip.go
src/compress/zlib/reader.go