Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(437)

Issue 4812048: code review 4812048: archive/zip: handle zip files with more than 65535 files (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by adg
Modified:
11 years, 8 months ago
Reviewers:
serbaut
CC:
r, golang-dev
Visibility:
Public.

Description

archive/zip: handle zip files with more than 65535 files

Patch Set 1 #

Patch Set 2 : diff -r aa64a398aa04 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r aa64a398aa04 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r b23c59e6b442 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M src/pkg/archive/zip/reader.go View 1 2 1 chunk +18 lines, -4 lines 0 comments Download

Messages

Total messages: 7
adg
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-22 04:48:11 UTC) #1
adg
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2011-07-22 04:50:01 UTC) #2
r
LGTM
12 years, 9 months ago (2011-07-22 04:52:35 UTC) #3
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=f04f95825b5a *** archive/zip: handle zip files with more than 65535 files R=r ...
12 years, 9 months ago (2011-07-22 04:57:22 UTC) #4
serbaut
I'm adding ZIP64 support to archive/zip and this looks very fishy to me. For 32 ...
11 years, 8 months ago (2012-08-09 21:05:32 UTC) #5
adg
You're suggesting we fail when trying to create files with greater than 64k files? On ...
11 years, 8 months ago (2012-08-10 04:02:00 UTC) #6
serbaut
11 years, 8 months ago (2012-08-10 09:00:14 UTC) #7
On 2012/08/10 04:02:00, adg wrote:
> You're suggesting we fail when trying to create files with greater than 64k
> files?

That would be the sane thing to do. However I looked at the source for zip 2.32
and it happily creates broken files. zip 3.0 complains about them though:

zip warning: expected 4464 entries but found 70000
zip error: Zip file structure invalid (test.zip)

They can be fixed with zip --fixfix test.zip --out fixed.zip.

I will try to make sure both can be read but that zip64 files will be written
when needed. Must read up on how to submit a patch for review first :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b