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

Issue 13042044: code review 13042044: math/big: fix nil bug in GobEncode (Closed)

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

Description

math/big: fix nil bug in GobEncode Update issue 5305. This handles the case where the nil pointers are inside a slice. A top-level nil pointer is harder, maybe fundamentally broken by gob's model. Thinking required. However, a slice is the important case since people don't expect to be sending top-level nils much, but they can arise easily in slices.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -2 lines) Patch
M src/pkg/math/big/int.go View 1 2 chunks +6 lines, -1 line 0 comments Download
M src/pkg/math/big/int_test.go View 1 1 chunk +26 lines, -0 lines 0 comments Download
M src/pkg/math/big/rat.go View 1 2 chunks +6 lines, -1 line 0 comments Download
M src/pkg/math/big/rat_test.go View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 8 months ago (2013-08-16 06:50:34 UTC) #1
josharian
On 2013/08/16 06:50:34, r wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
10 years, 8 months ago (2013-08-16 19:39:42 UTC) #2
r
Hello golang-dev@googlegroups.com, josharian@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-19 00:50:58 UTC) #3
adg
LGTM
10 years, 8 months ago (2013-08-19 01:11:09 UTC) #4
r
*** Submitted as https://code.google.com/p/go/source/detail?r=b20a8e563992 *** math/big: fix nil bug in GobEncode Update issue 5305. This ...
10 years, 8 months ago (2013-08-19 01:22:16 UTC) #5
josharian
10 years, 8 months ago (2013-08-19 16:33:57 UTC) #6
Message was sent while issue was closed.
On 2013/08/19 01:22:16, r wrote:
> *** Submitted as https://code.google.com/p/go/source/detail?r=b20a8e563992 ***
> 
> math/big: fix nil bug in GobEncode
> 
> Update issue 5305.
> This handles the case where the nil pointers are inside a slice.
> A top-level nil pointer is harder, maybe fundamentally broken by gob's model.
> Thinking required.
> However, a slice is the important case since people don't expect to be sending
> top-level nils much, but they can arise easily in slices.
> 
> R=golang-dev, josharian, adg
> CC=golang-dev
> https://codereview.appspot.com/13042044

LGTM
Sign in to reply to this message.

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