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

Issue 2246041: code review 2246041: gob: make robust when decoding a struct with non-struct... (Closed)

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

Description

gob: make robust when decoding a struct with non-struct data. The decoder was crashing when handling an rpc that expected a struct but was delivered something else. This diagnoses the problem. The other direction (expecting non-struct but getting one) was already handled.

Patch Set 1 #

Total comments: 1

Patch Set 2 : code review 2246041: gob: make robust when decoding a struct with non-struct... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -4 lines) Patch
M src/pkg/gob/decode.go View 1 1 chunk +7 lines, -2 lines 0 comments Download
M src/pkg/gob/encoder_test.go View 1 chunk +28 lines, -0 lines 0 comments Download
M src/pkg/gob/type.go View 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 3
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 10 months ago (2010-09-19 00:41:57 UTC) #1
rsc1
LGTM http://codereview.appspot.com/2246041/diff/1/src/pkg/gob/decode.go File src/pkg/gob/decode.go (right): http://codereview.appspot.com/2246041/diff/1/src/pkg/gob/decode.go#newcode847 src/pkg/gob/decode.go:847: // Also we know we;re decoding a struct ...
14 years, 10 months ago (2010-09-19 15:01:06 UTC) #2
r
14 years, 10 months ago (2010-09-19 21:37:15 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=149e961a8408 ***

gob: make robust when decoding a struct with non-struct data.
The decoder was crashing when handling an rpc that expected
a struct but was delivered something else.  This diagnoses the
problem.  The other direction (expecting non-struct but getting
one) was already handled.

R=rsc
CC=golang-dev
http://codereview.appspot.com/2246041
Sign in to reply to this message.

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