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

Issue 6374059: code review 6374059: encoding/gob: fix check for short input in slice decode (Closed)

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

Description

encoding/gob: fix check for short input in slice decode

Patch Set 1 #

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -3 lines) Patch
M src/pkg/encoding/gob/decode.go View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/encoding/gob/encoder_test.go View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 8
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2012-07-11 22:53:52 UTC) #1
dsymonds
http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/decode.go File src/pkg/encoding/gob/decode.go (left): http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/decode.go#oldcode655 src/pkg/encoding/gob/decode.go:655: if nr > uint64(state.b.Len()) { I'm nervous about removing ...
11 years, 9 months ago (2012-07-11 23:11:51 UTC) #2
r
http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/decode.go File src/pkg/encoding/gob/decode.go (left): http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/decode.go#oldcode655 src/pkg/encoding/gob/decode.go:655: if nr > uint64(state.b.Len()) { you can be nervous ...
11 years, 9 months ago (2012-07-11 23:35:45 UTC) #3
dsymonds
On Thu, Jul 12, 2012 at 9:35 AM, <r@golang.org> wrote: > you can be nervous ...
11 years, 9 months ago (2012-07-11 23:41:09 UTC) #4
r2
On Jul 11, 2012, at 4:41 PM, David Symonds wrote: > On Thu, Jul 12, ...
11 years, 9 months ago (2012-07-11 23:44:58 UTC) #5
dsymonds
LGTM
11 years, 9 months ago (2012-07-11 23:48:58 UTC) #6
nigeltao
LGTM. http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/encoder_test.go File src/pkg/encoding/gob/encoder_test.go (right): http://codereview.appspot.com/6374059/diff/1/src/pkg/encoding/gob/encoder_test.go#newcode825 src/pkg/encoding/gob/encoder_test.go:825: func Test29ElementSlice(t *testing.T) { s/29/Long/ ?
11 years, 9 months ago (2012-07-12 01:03:12 UTC) #7
r
11 years, 9 months ago (2012-07-12 17:23:58 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=d5754b3d9f44 ***

encoding/gob: fix check for short input in slice decode

R=golang-dev, dsymonds, r, nigeltao
CC=golang-dev
http://codereview.appspot.com/6374059
Sign in to reply to this message.

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