]> Cypherpunks repositories - gostls13.git/commit
archive/tar: document how Reader.Read handles header-only files
authorJoe Tsai <joetsai@digital-static.net>
Thu, 17 Dec 2015 07:10:14 +0000 (23:10 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 15:48:10 +0000 (15:48 +0000)
commit7a2913c9f551588b351efc6d026c1c6f187442e1
tree7ab76499970022182f25cc84263453b84bd449d2
parent5c0629b503ff9044906a785f360354a5e45cf9ce
archive/tar: document how Reader.Read handles header-only files

Commit dd5e14a7511465d20c6e95bf54c9b8f999abbbf6 ensured that no data
could be read for header-only files regardless of what the Header.Size
said. We should document this fact in Reader.Read.

Updates #13647

Change-Id: I4df9a2892bc66b49e0279693d08454bf696cfa31
Reviewed-on: https://go-review.googlesource.com/17913
Reviewed-by: Russ Cox <rsc@golang.org>
src/archive/tar/reader.go