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

Issue 6446051: code review 6446051: net/rpc/jsonrpc: handles missing "params" in jsonrpc.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by brtzsnr
Modified:
12 years, 7 months ago
Reviewers:
rsc
CC:
golang-dev, rsc
Visibility:
Public.

Description

net/rpc/jsonrpc: handles missing "params" in jsonrpc. A crash happens in the first request in a connection if "params" field is missing because c.req.Params is Nil. Fixes issue 3848.

Patch Set 1 #

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

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

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

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -22 lines) Patch
M src/pkg/net/rpc/jsonrpc/all_test.go View 1 2 4 chunks +39 lines, -16 lines 0 comments Download
M src/pkg/net/rpc/jsonrpc/server.go View 1 2 3 4 5 6 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 7
brtzsnr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 8 months ago (2012-07-26 14:48:29 UTC) #1
rsc
Thanks for working on this. http://codereview.appspot.com/6446051/diff/3007/src/pkg/net/rpc/jsonrpc/server.go File src/pkg/net/rpc/jsonrpc/server.go (right): http://codereview.appspot.com/6446051/diff/3007/src/pkg/net/rpc/jsonrpc/server.go#newcode53 src/pkg/net/rpc/jsonrpc/server.go:53: if r.Params == nil ...
12 years, 8 months ago (2012-08-06 20:48:24 UTC) #2
brtzsnr
PTAL.
12 years, 8 months ago (2012-08-07 08:59:33 UTC) #3
brtzsnr
On 2012/08/07 08:59:33, brtzsnr wrote: > PTAL. Any update on this patch?
12 years, 7 months ago (2012-08-20 12:22:57 UTC) #4
rsc
Sorry, I had an unplanned absence for a while taking care of other things. Your ...
12 years, 7 months ago (2012-08-31 16:01:27 UTC) #5
rsc
LGTM
12 years, 7 months ago (2012-08-31 19:51:20 UTC) #6
rsc
12 years, 7 months ago (2012-08-31 19:52:32 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=d15f71f90167 ***

net/rpc/jsonrpc: handles missing "params" in jsonrpc.

A crash happens in the first request in a connection
if "params" field is missing because c.req.Params is Nil.

Fixes issue 3848.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6446051

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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