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

Issue 6448128: code review 6448128: go.crypto/ssh: never send more data than maxpacket (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by dave
Modified:
11 years, 8 months ago
Reviewers:
CC:
agl1, albert.strasheim, golang-dev
Visibility:
Public.

Description

go.crypto/ssh: never send more data than maxpacket RFC 4254 s5.2 is clear that a client must never send a data packet larger than the value of maximum packet supplied by the remote side during channel setup. The client was not honoring this value, in fact it wasn't even recording it. Thanks to Albert Strasheim for the bug report.

Patch Set 1 #

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

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

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -14 lines) Patch
M ssh/channel.go View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M ssh/client.go View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M ssh/server.go View 1 2 3 4 1 chunk +8 lines, -7 lines 0 comments Download
M ssh/session_test.go View 1 2 3 4 3 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dave_cheney.net
Hello agl@golang.org, fullung@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
11 years, 8 months ago (2012-08-08 10:57:35 UTC) #1
agl1
LGTM http://codereview.appspot.com/6448128/diff/3/ssh/client.go File ssh/client.go (right): http://codereview.appspot.com/6448128/diff/3/ssh/client.go#newcode502 ssh/client.go:502: c.maxPacketSize = msg.MaxPacketSize It might be worth checking ...
11 years, 8 months ago (2012-08-08 14:30:11 UTC) #2
albert.strasheim
My test works now. Thanks. On 2012/08/08 10:57:35, dfc wrote: > Hello mailto:agl@golang.org, mailto:fullung@gmail.com (cc: ...
11 years, 8 months ago (2012-08-08 14:41:08 UTC) #3
dave_cheney.net
Hello agl@golang.org, fullung@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 8 months ago (2012-08-09 00:20:18 UTC) #4
dave_cheney.net
Thank you for your comments. I'll follow up with some additional CLs. http://codereview.appspot.com/6448128/diff/3/ssh/client.go File ssh/client.go ...
11 years, 8 months ago (2012-08-09 00:21:33 UTC) #5
dave_cheney.net
11 years, 8 months ago (2012-08-09 00:22:05 UTC) #6
*** Submitted as
http://code.google.com/p/go/source/detail?r=5140f139859b&repo=crypto ***

go.crypto/ssh: never send more data than maxpacket

RFC 4254 s5.2 is clear that a client must never send a data
packet larger than the value of maximum packet supplied by the
remote side during channel setup. The client was not honoring
this value, in fact it wasn't even recording it.

Thanks to Albert Strasheim for the bug report.

R=agl, fullung
CC=golang-dev
http://codereview.appspot.com/6448128
Sign in to reply to this message.

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