go/src/archive/zip
alexander demakin 2b50e6b458 archive/zip: fixes unexpected EOF when reading archive
If comment of the archive contains data which looks like
a zip64 directory, the comment is parsed as an
actual directory header.
Commit adds some additional checks similar to the checks
in minizip library.

Fixes #12449

Change-Id: Ia0fc950e47b9c39f77d88401b9ca30100ca7c808
Reviewed-on: https://go-review.googlesource.com/14433
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-09-11 00:32:59 +00:00
..
testdata all: link to https instead of http 2015-07-11 14:36:33 +00:00
example_test.go
reader.go archive/zip: fixes unexpected EOF when reading archive 2015-09-11 00:32:59 +00:00
reader_test.go archive/zip: fixes unexpected EOF when reading archive 2015-09-11 00:32:59 +00:00
register.go
struct.go all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
writer.go archive/zip: clarify that CreateHeader takes ownership of FileHeader 2015-06-10 19:56:37 +00:00
writer_test.go archive/zip: remove WriterOptions and replace with SetOffset method 2015-03-12 21:32:09 +00:00
zip_test.go