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

Issue 6049050: code review 6049050: crypto/ssh: fix several logic errors. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by agl1
Modified:
14 years, 2 months ago
Reviewers:
CC:
dave_cheney.net, kardia, golang-dev
Visibility:
Public.

Description

crypto/ssh: fix several logic errors. These are the obvious mistakes from my read through. I'll save the more cosmetic changes for a later CL.

Patch Set 1 #

Patch Set 2 : diff -r 432e40a8c0ba https://agl%40golang.org@code.google.com/p/go.crypto/ #

Total comments: 5

Patch Set 3 : diff -r 432e40a8c0ba https://agl%40golang.org@code.google.com/p/go.crypto/ #

Patch Set 4 : diff -r 432e40a8c0ba https://agl%40golang.org@code.google.com/p/go.crypto/ #

Patch Set 5 : diff -r 432e40a8c0ba https://agl%40golang.org@code.google.com/p/go.crypto/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M ssh/channel.go View 1 2 3 4 3 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://agl%40golang.org@code.google.com/p/go.crypto/
14 years, 2 months ago (2012-04-19 00:06:03 UTC) #1
agl1
http://codereview.appspot.com/6049050/diff/2001/ssh/channel.go File ssh/channel.go (left): http://codereview.appspot.com/6049050/diff/2001/ssh/channel.go#oldcode239 ssh/channel.go:239: if c.myWindow <= uint32(len(c.pendingData))/2 { Previously we would let ...
14 years, 2 months ago (2012-04-19 00:17:35 UTC) #2
kardia
Appears to work well in the tests I ran on it (pushing/pulling hg repos through ...
14 years, 2 months ago (2012-04-19 05:11:55 UTC) #3
dave_cheney.net
LGTM. Kardia - I would like to see your ideas about the circular buffer integrated ...
14 years, 2 months ago (2012-04-19 14:54:37 UTC) #4
agl1
14 years, 2 months ago (2012-04-19 15:17:05 UTC) #5
*** Submitted as
http://code.google.com/p/go/source/detail?r=8e4015d2d681&repo=crypto ***

crypto/ssh: fix several logic errors.

These are the obvious mistakes from my read through. I'll save the
more cosmetic changes for a later CL.

R=dave, kardianos
CC=golang-dev
http://codereview.appspot.com/6049050

http://codereview.appspot.com/6049050/diff/2001/ssh/channel.go
File ssh/channel.go (right):

http://codereview.appspot.com/6049050/diff/2001/ssh/channel.go#newcode260
ssh/channel.go:260: tail = len(c.pendingData)
On 2012/04/19 14:54:38, dfc wrote:
> maybe tail := min(c.head + c.length, len(c.pendingData))

Done.
Sign in to reply to this message.

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