]> Cypherpunks repositories - gostls13.git/commit
archive/zip: verify CRC32s in non-streamed files
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 9 Mar 2012 22:45:40 +0000 (14:45 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 9 Mar 2012 22:45:40 +0000 (14:45 -0800)
commit98cfe6770d8530f6677ecb72a59d939c88504255
treeae0c744e22ef39f51accc443057d6aefa835ef7f
parent9fffe45c6551a495f00d5593e941f7f1b1b7e784
archive/zip: verify CRC32s in non-streamed files

We should check the CRC32s of files on EOF, even if there's no
data descriptor (in streamed files), as long as there's a non-zero
CRC32 in the file header / TOC.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5794045
src/pkg/archive/zip/reader.go
src/pkg/archive/zip/reader_test.go
src/pkg/archive/zip/testdata/crc32-not-streamed.zip [new file with mode: 0644]