]> Cypherpunks repositories - gostls13.git/commit
archive/zip: support "end of central directory record comment"
authorKenji Yano <kenji.yano@gmail.com>
Sat, 26 Aug 2017 09:44:27 +0000 (18:44 +0900)
committerJoe Tsai <thebrokentoaster@gmail.com>
Thu, 31 Aug 2017 02:48:46 +0000 (02:48 +0000)
commitfda8269cc6b8223ba5125ddadefe8f2f2302a309
tree55df7b0d605c754fe258cf5a8e8fbab7cf1d7b0e
parent7846500a5a7659615051fe46dee481bde623989f
archive/zip: support "end of central directory record comment"

This change added support "end of central directory record comemnt" to the Writer.

There is a new exported field Writer.Comment in this change.
If invalid size of comment was set, Close returns error without closing resources.

Fixes #21634

Change-Id: Ifb62bc6c7f81b9257ac83eb570ad9915de727f8c
Reviewed-on: https://go-review.googlesource.com/59310
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/archive/zip/writer.go
src/archive/zip/writer_test.go