]> Cypherpunks repositories - gostls13.git/commit
archive/zip: fix bug reading zip64 files
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Jan 2014 18:43:56 +0000 (10:43 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Jan 2014 18:43:56 +0000 (10:43 -0800)
commit02a15e716519b71aca6b74a0a388b30e83892e08
treecc4ef26f566942a18837d5033ff0f4d422538238
parent991e9a83314216040592e3f303d737cb2dc087ac
archive/zip: fix bug reading zip64 files

ZIP64 Extra records are variably sized, but we weren't capping
our reading of the extra fields at its previously-declared
size.

No test because I don't know how to easily create such files
and don't feel like manually construction one.  But all
existing tests pass, and this is "obviously correct" (queue
laughter).

Fixes #7069

R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/48150043
src/pkg/archive/zip/reader.go