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

Issue 6119043: code review 6119043: net: fix crash of Listen with "" or nil laddr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by mikio
Modified:
11 years, 12 months ago
Reviewers:
CC:
dfc, dsymonds, rsc, golang-dev
Visibility:
Public.

Description

net: fix crash of Listen with "" or nil laddr Fixes issue 3584.

Patch Set 1 : diff -r cc8a35781b5e https://go.googlecode.com/hg/ #

Patch Set 2 : diff -r cc8a35781b5e https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 3 : diff -r cc8a35781b5e https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r 29665c4bae69 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r b15b7aaca931 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M src/pkg/net/ipsock_posix.go View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/pkg/net/unicast_test.go View 1 2 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 14
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 12 months ago (2012-04-24 06:29:21 UTC) #1
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 12 months ago (2012-04-24 06:34:30 UTC) #2
dfc
Hi Mikio, thank you for fixing this issue, please see my comments below. http://codereview.appspot.com/6119043/diff/5003/src/pkg/net/unicast_test.go File ...
11 years, 12 months ago (2012-04-24 09:15:57 UTC) #3
mikio
http://codereview.appspot.com/6119043/diff/5003/src/pkg/net/unicast_test.go File src/pkg/net/unicast_test.go (right): http://codereview.appspot.com/6119043/diff/5003/src/pkg/net/unicast_test.go#newcode549 src/pkg/net/unicast_test.go:549: t.Fatalf("panicked") On 2012/04/24 09:15:57, dfc wrote: > Should you ...
11 years, 12 months ago (2012-04-24 09:36:22 UTC) #4
mikio
Hello golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 12 months ago (2012-04-24 09:37:07 UTC) #5
dfc
LGTM. I was uncomfortable that a nil laddr value got down so deep in the ...
11 years, 12 months ago (2012-04-24 09:53:05 UTC) #6
mikio
Thank you for your review. I'll submit this CL after Go 1.0.1 release. On Tue, ...
11 years, 12 months ago (2012-04-25 00:47:56 UTC) #7
dsymonds
On Wed, Apr 25, 2012 at 10:47 AM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > I'll submit ...
11 years, 12 months ago (2012-04-25 00:49:00 UTC) #8
rsc
I would have expected the laddr == nil to happen after the mapping check. http://codereview.appspot.com/6119043/diff/12001/src/pkg/net/ipsock_posix.go ...
11 years, 12 months ago (2012-04-25 02:01:11 UTC) #9
mikio
http://codereview.appspot.com/6119043/diff/12001/src/pkg/net/ipsock_posix.go File src/pkg/net/ipsock_posix.go (right): http://codereview.appspot.com/6119043/diff/12001/src/pkg/net/ipsock_posix.go#newcode101 src/pkg/net/ipsock_posix.go:101: if laddr == nil { On 2012/04/25 02:01:11, rsc ...
11 years, 12 months ago (2012-04-25 03:21:13 UTC) #10
mikio
Hello dave@cheney.net, dsymonds@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 12 months ago (2012-04-25 03:23:13 UTC) #11
rsc
LGTM
11 years, 12 months ago (2012-04-25 03:28:35 UTC) #12
mikio
*** Submitted as http://code.google.com/p/go/source/detail?r=b07591eb8077 *** net: fix crash of Listen with "" or nil laddr ...
11 years, 12 months ago (2012-04-25 03:29:24 UTC) #13
mikio
11 years, 12 months ago (2012-04-25 04:24:29 UTC) #14
Sorry this CL fixes issue 3548, not 3584.

On Wed, Apr 25, 2012 at 12:29 PM,  <mikioh.mikioh@gmail.com> wrote:
> *** Submitted as
> http://code.google.com/p/go/source/detail?r=b07591eb8077 ***
>
>
> net: fix crash of Listen with "" or nil laddr
>
> Fixes issue 3584.
>
> R=dave, dsymonds, rsc
> CC=golang-dev
> http://codereview.appspot.com/6119043
>
>
> http://codereview.appspot.com/6119043/
Sign in to reply to this message.

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