]> Cypherpunks repositories - gostls13.git/commit
archive/zip: accept bogus trailing zeros in extras
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Aug 2014 23:12:55 +0000 (16:12 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Aug 2014 23:12:55 +0000 (16:12 -0700)
commit77df26f0bd7b52f0edb06c0af9904d64faf787ae
treeb712294a71270c57f75412f5f852d1f8b70684bf
parent5c055e74d0b04ca863380c5785ca0aadda9ebc5e
archive/zip: accept bogus trailing zeros in extras

Popular tools both add incorrect trailing zeroes to the zip
extras, and popular tools accept trailing zeros. We seemed to
be the only ones being strict here. Stop being strict. :(

Fixes #8186

LGTM=ruiu, adg, dave
R=adg, ruiu, dave
CC=frohrweck, golang-codereviews
https://golang.org/cl/117550044
src/pkg/archive/zip/reader.go
src/pkg/archive/zip/reader_test.go