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

Issue 6811048: code review 6811048: archive/zip: handle corrupt extra data records (Closed)

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

Description

archive/zip: handle corrupt extra data records Fixes issue 4302.

Patch Set 1 #

Patch Set 2 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Patch Set 3 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Total comments: 4

Patch Set 4 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Total comments: 4

Patch Set 5 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Patch Set 6 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Patch Set 7 : diff -r 8e87cb8dca7d https://code.google.com/p/go #

Total comments: 2

Patch Set 8 : diff -r 3312fddeb739 https://code.google.com/p/go #

Patch Set 9 : diff -r 09506146da69 https://code.google.com/p/go #

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

Messages

Total messages: 16
dfc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-10-29 21:47:28 UTC) #1
bradfitz
https://codereview.appspot.com/6811048/diff/1002/src/pkg/archive/zip/zip_test.go File src/pkg/archive/zip/zip_test.go (right): https://codereview.appspot.com/6811048/diff/1002/src/pkg/archive/zip/zip_test.go#newcode182 src/pkg/archive/zip/zip_test.go:182: func() { what the func? https://codereview.appspot.com/6811048/diff/1002/src/pkg/archive/zip/zip_test.go#newcode204 src/pkg/archive/zip/zip_test.go:204: }() why?
11 years, 5 months ago (2012-10-29 21:52:44 UTC) #2
dfc
https://codereview.appspot.com/6811048/diff/1002/src/pkg/archive/zip/zip_test.go File src/pkg/archive/zip/zip_test.go (right): https://codereview.appspot.com/6811048/diff/1002/src/pkg/archive/zip/zip_test.go#newcode182 src/pkg/archive/zip/zip_test.go:182: func() { On 2012/10/29 21:52:44, bradfitz wrote: > what ...
11 years, 5 months ago (2012-10-29 21:54:30 UTC) #3
dfc
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 5 months ago (2012-10-29 21:54:52 UTC) #4
bradfitz
https://codereview.appspot.com/6811048/diff/6002/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): https://codereview.appspot.com/6811048/diff/6002/src/pkg/archive/zip/reader.go#newcode23 src/pkg/archive/zip/reader.go:23: ErrCorruptExtra = errors.New("zip: corrupt extra data") is this common ...
11 years, 5 months ago (2012-10-29 21:58:52 UTC) #5
dfc
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 5 months ago (2012-10-30 13:20:13 UTC) #6
bradfitz
LGTM https://codereview.appspot.com/6811048/diff/12002/src/pkg/archive/zip/zip_test.go File src/pkg/archive/zip/zip_test.go (right): https://codereview.appspot.com/6811048/diff/12002/src/pkg/archive/zip/zip_test.go#newcode206 src/pkg/archive/zip/zip_test.go:206: // TODO(dfc) revisit this when bytes.Buffer implements ReadAt. ...
11 years, 5 months ago (2012-10-30 13:42:20 UTC) #7
dfc
> src/pkg/archive/zip/zip_test.go:206: // TODO(dfc) revisit this when > bytes.Buffer implements ReadAt. > delete this line. ...
11 years, 5 months ago (2012-10-30 13:46:19 UTC) #8
bradfitz
On Tue, Oct 30, 2012 at 2:46 PM, Dave Cheney <dave@cheney.net> wrote: > > src/pkg/archive/zip/zip_test.go:206: ...
11 years, 5 months ago (2012-10-30 13:52:33 UTC) #9
adg
NOT LGTM https://codereview.appspot.com/6811048/diff/12002/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): https://codereview.appspot.com/6811048/diff/12002/src/pkg/archive/zip/reader.go#newcode23 src/pkg/archive/zip/reader.go:23: errCorruptExtra = errors.New("zip: corrupt extra data") I ...
11 years, 5 months ago (2012-10-30 13:56:26 UTC) #10
bradfitz
On Tue, Oct 30, 2012 at 2:56 PM, <adg@golang.org> wrote: > NOT LGTM > > ...
11 years, 5 months ago (2012-10-30 13:57:38 UTC) #11
adg
On 31 October 2012 00:57, Brad Fitzpatrick <bradfitz@golang.org> wrote: > On Tue, Oct 30, 2012 ...
11 years, 5 months ago (2012-10-30 14:01:26 UTC) #12
dfc
Thank you for your comments. PTAL. On Wed, Oct 31, 2012 at 1:00 AM, Andrew ...
11 years, 5 months ago (2012-10-30 14:28:26 UTC) #13
adg
LGTM
11 years, 5 months ago (2012-10-30 15:38:07 UTC) #14
dfc
http://codereview.appspot.com/6811048/diff/6002/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/6811048/diff/6002/src/pkg/archive/zip/reader.go#newcode23 src/pkg/archive/zip/reader.go:23: ErrCorruptExtra = errors.New("zip: corrupt extra data") On 2012/10/29 21:58:52, ...
11 years, 5 months ago (2012-10-30 16:51:21 UTC) #15
dfc
11 years, 5 months ago (2012-10-30 16:52:04 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=58c77d337d81 ***

archive/zip: handle corrupt extra data records

Fixes issue 4302.

R=golang-dev, bradfitz, adg
CC=golang-dev
http://codereview.appspot.com/6811048
Sign in to reply to this message.

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