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

Issue 2125042: code review 2125042: archive/zip: new package for reading ZIP files (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by adg
Modified:
14 years, 5 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

archive/zip: new package for reading ZIP files

Patch Set 1 #

Patch Set 2 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 3 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 4 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 5 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 6 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 7 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 8 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 9 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 10 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 28

Patch Set 11 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 2

Patch Set 12 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 1

Patch Set 13 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 23

Patch Set 14 : code review 2125042: archive/zip: new package for reading ZIP files #

Patch Set 15 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 10

Patch Set 16 : code review 2125042: archive/zip: new package for reading ZIP files #

Total comments: 16

Patch Set 17 : code review 2125042: archive/zip: new package for reading ZIP files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -0 lines) Patch
A src/pkg/archive/zip/Makefile View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
A src/pkg/archive/zip/reader.go View 10 11 12 13 14 15 16 1 chunk +278 lines, -0 lines 0 comments Download
A src/pkg/archive/zip/reader_test.go View 11 12 13 14 15 16 1 chunk +180 lines, -0 lines 0 comments Download
A src/pkg/archive/zip/struct.go View 10 11 1 chunk +33 lines, -0 lines 0 comments Download
A src/pkg/archive/zip/testdata/gophercolor16x16.png View Binary file 0 comments Download
A src/pkg/archive/zip/testdata/r.zip View Binary file 0 comments Download
A src/pkg/archive/zip/testdata/readme.notzip View Binary file 0 comments Download
A src/pkg/archive/zip/testdata/readme.zip View Binary file 0 comments Download
A src/pkg/archive/zip/testdata/test.zip View Binary file 0 comments Download

Messages

Total messages: 27
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 6 months ago (2010-09-05 05:01:09 UTC) #1
adg
Requesting comments on the design. It's still incomplete; at the very least it needs support ...
14 years, 6 months ago (2010-09-05 05:03:09 UTC) #2
adg
After some small reflection, I added support for "store" (no compression). I also added the ...
14 years, 6 months ago (2010-09-05 06:08:36 UTC) #3
rsc
I forwarded you an email from golang-nuts in May about a possible design. It looks ...
14 years, 6 months ago (2010-09-06 21:43:09 UTC) #4
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-09-07 12:29:53 UTC) #5
adg
I've taken these suggestions onboard and made some changes. The downside is that now NewReader ...
14 years, 6 months ago (2010-09-07 12:36:00 UTC) #6
rsc1
looks pretty good. a bunch of small things. http://codereview.appspot.com/2125042/diff/15006/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/15006/src/pkg/archive/zip/reader.go#newcode28 src/pkg/archive/zip/reader.go:28: directoryEnd ...
14 years, 6 months ago (2010-09-08 14:55:50 UTC) #7
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-09-09 10:46:25 UTC) #8
adg
PTAL http://codereview.appspot.com/2125042/diff/15006/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/15006/src/pkg/archive/zip/reader.go#newcode28 src/pkg/archive/zip/reader.go:28: directoryEnd On 2010/09/08 14:55:50, rsc1 wrote: > Does ...
14 years, 6 months ago (2010-09-09 10:47:44 UTC) #9
rsc
http://codereview.appspot.com/2125042/diff/21006/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/21006/src/pkg/archive/zip/reader.go#newcode29 src/pkg/archive/zip/reader.go:29: File []*FileHeader I wasn't clear earlier; I intended File ...
14 years, 6 months ago (2010-09-09 18:08:18 UTC) #10
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-09-15 11:45:33 UTC) #11
rsc1
http://codereview.appspot.com/2125042/diff/36001/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/36001/src/pkg/archive/zip/reader.go#newcode114 src/pkg/archive/zip/reader.go:114: if _, err = f.r.Seek(0, 0); err != nil ...
14 years, 6 months ago (2010-09-16 18:06:34 UTC) #12
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 5 months ago (2010-09-24 03:33:17 UTC) #13
rsc1
Looking pretty good. Comments are mainly ways to improve robustness now. http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): ...
14 years, 5 months ago (2010-09-24 04:05:43 UTC) #14
adg
http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go#newcode6 src/pkg/archive/zip/reader.go:6: The zip package provides support for reading ZIP archives ...
14 years, 5 months ago (2010-09-28 01:55:13 UTC) #15
rsc1
http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go#newcode222 src/pkg/archive/zip/reader.go:222: // Better to write the little-endian representation of > ...
14 years, 5 months ago (2010-09-28 02:03:10 UTC) #16
adg
On 28 September 2010 12:03, <rsc@google.com> wrote: > > http://codereview.appspot.com/2125042/diff/54001/src/pkg/archive/zip/reader.go > File src/pkg/archive/zip/reader.go (right): > ...
14 years, 5 months ago (2010-09-28 02:10:54 UTC) #17
adg
On 28 September 2010 12:10, Andrew Gerrand <adg@golang.org> wrote: > On 28 September 2010 12:03, ...
14 years, 5 months ago (2010-09-28 02:42:47 UTC) #18
rsc
> So if it encounters the signature it should attempt to read the > signature, ...
14 years, 5 months ago (2010-09-28 02:43:58 UTC) #19
adg
PTAL I still need to craft a test to trigger the 65kb read, and probably ...
14 years, 5 months ago (2010-09-28 04:17:58 UTC) #20
rsc1
Looks good. Will wait for tests. If you want some test cases http://www/~rsc/readme.zip http://www/~rsc/readme.notzip http://codereview.appspot.com/2125042/diff/69001/src/pkg/archive/zip/reader.go ...
14 years, 5 months ago (2010-09-28 14:06:36 UTC) #21
adg
On 29 September 2010 00:06, <rsc@google.com> wrote: > Looks good. Will wait for tests. > ...
14 years, 5 months ago (2010-09-29 03:14:30 UTC) #22
adg
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-09-29 04:22:56 UTC) #23
rsc1
Pretty close. reader_test.go:145: (Rietveld is having issues) Tighten these error messages. Think about whether they'll ...
14 years, 5 months ago (2010-09-29 14:01:08 UTC) #24
adg
Thanks http://codereview.appspot.com/2125042/diff/69001/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/2125042/diff/69001/src/pkg/archive/zip/reader.go#newcode213 src/pkg/archive/zip/reader.go:213: b = make([]byte, bLen) On 2010/09/28 14:06:36, rsc1 ...
14 years, 5 months ago (2010-09-30 00:51:48 UTC) #25
rsc1
LGTM add archive/zip to pkg/Makefile hg file 2125042 pkg/Makefile
14 years, 5 months ago (2010-09-30 01:41:10 UTC) #26
adg
14 years, 5 months ago (2010-09-30 01:59:58 UTC) #27
*** Submitted as http://code.google.com/p/go/source/detail?r=d6a4eb7fee9d ***

archive/zip: new package for reading ZIP files

R=rsc
CC=golang-dev
http://codereview.appspot.com/2125042

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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