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

Issue 6490098: code review 6490098: go.crypto/ssh: sanity check incoming packet length (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by dave
Modified:
14 years, 1 month ago
Reviewers:
brainman
CC:
agl1, huin-google, kardia, golang-dev
Visibility:
Public.

Description

go.crypto/ssh: sanity check incoming packet length The check for a sensible packet length was removed a while ago when the window size and channel packet size checks were moved into channel.go. While the RFC suggests that any packet of size less than uint32 -1 is valid, most implmentations limit the size to a smaller value. OpenSSH chose 256kb, so that sounds like a sensible default.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M ssh/session_test.go View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ssh/transport.go View 1 2 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 13
dave_cheney.net
Hello agl@golang.org, huin@google.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
14 years, 1 month ago (2012-09-09 01:33:01 UTC) #1
dave_cheney.net
note: I don't think this will fix the breakage under win32. It will stop the ...
14 years, 1 month ago (2012-09-09 01:34:31 UTC) #2
agl1
LGTM. The description mentions 245KB, but the code says 256KB. (In time, this constant should ...
14 years, 1 month ago (2012-09-09 14:53:33 UTC) #3
kardia
I would suggest someone check that it is actually building the latest code. When I ...
14 years, 1 month ago (2012-09-09 15:07:25 UTC) #4
dave_cheney.net
On 2012/09/09 15:07:25, kardia wrote: > I would suggest someone check that it is actually ...
14 years, 1 month ago (2012-09-09 20:55:08 UTC) #5
dave_cheney.net
Thank you. I have fixed the description.
14 years, 1 month ago (2012-09-09 20:56:44 UTC) #6
dave_cheney.net
*** Submitted as http://code.google.com/p/go/source/detail?r=89d51f1bcc70&repo=crypto *** go.crypto/ssh: sanity check incoming packet length The check for a ...
14 years, 1 month ago (2012-09-09 20:57:29 UTC) #7
dave_cheney.net
Interesting. http://build.golang.org/log/9a51d64e16e6571f01fe3f505e9f4df77cf345ca ssh breaks on windows, but so does a nacl test. crypto/rand.(*rngReader).Read(0x11c7e0e0, 0x5e0374, 0x0, ...
14 years, 1 month ago (2012-09-09 23:10:07 UTC) #8
brainman
On 2012/09/09 23:10:07, dfc wrote: > Interesting. > > http://build.golang.org/log/9a51d64e16e6571f01fe3f505e9f4df77cf345ca > I agree, crypto/rand on ...
14 years, 1 month ago (2012-09-09 23:50:21 UTC) #9
agl1
On Sun, Sep 9, 2012 at 7:10 PM, <dave@cheney.net> wrote: > a []byte at address ...
14 years, 1 month ago (2012-09-09 23:58:28 UTC) #10
brainman
On 2012/09/09 23:10:07, dfc wrote: > Interesting. > These --- FAIL: TestExitStatusNonZero (1.48 seconds) session_test.go:44: ...
14 years, 1 month ago (2012-09-10 02:42:06 UTC) #11
dave_cheney.net
That is what I expected, both from the builder and your machine. I'm sure problem ...
14 years, 1 month ago (2012-09-10 02:45:50 UTC) #12
brainman
14 years, 1 month ago (2012-09-10 02:50:54 UTC) #13
On 2012/09/10 02:45:50, dfc wrote:
> That is what I expected, both from the builder and your machine. I'm sure
> problem lies within my code, but the brain damage of those builders does give
me
> pause. 
> 

I am not clear what you point is. My concern is that same test FAILS on builder,
but PASSes on my computer. I am interested to know why.

Alex
Sign in to reply to this message.

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