archive/zip: handle files with data descriptors

Fixes #1471.

R=rsc
CC=golang-dev
https://golang.org/cl/4183048
This commit is contained in:
Andrew Gerrand 2011-02-15 05:42:16 +11:00
parent 1778f50da3
commit 858972c3f9
4 changed files with 57 additions and 14 deletions

View file

@ -4,6 +4,7 @@ const (
fileHeaderSignature = 0x04034b50
directoryHeaderSignature = 0x02014b50
directoryEndSignature = 0x06054b50
dataDescriptorLen = 12
)
type FileHeader struct {