• Dave Cheney's avatar
    exp/ssh: fix two flow control bugs in chanWriter · 424f53fa
    Dave Cheney authored
    This CL fixes two issues sending data to the remote peer.
    The first bug occurs when the size of the buffer passed to
    Write is larger than the current window, in this case, w.rwin
    can become negative.
    
    The second issue is more problematic than the first as the
    amount of data passed to writePacket was not limited to w.rwin.
    In this case the remote peer could silently drop the additional
    data, or drop the connection.
    
    Credit to Jacek Masiulaniec for the bug report.
    
    R=agl, jacek.masiulaniec
    CC=golang-dev
    https://golang.org/cl/5511043
    424f53fa
Name
Last commit
Last update
..
Makefile Loading commit data...
channel.go Loading commit data...
cipher.go Loading commit data...
cipher_test.go Loading commit data...
client.go Loading commit data...
client_auth.go Loading commit data...
client_auth_test.go Loading commit data...
client_func_test.go Loading commit data...
common.go Loading commit data...
common_test.go Loading commit data...
doc.go Loading commit data...
messages.go Loading commit data...
messages_test.go Loading commit data...
server.go Loading commit data...
server_shell.go Loading commit data...
server_shell_test.go Loading commit data...
session.go Loading commit data...
session_test.go Loading commit data...
tcpip.go Loading commit data...
tcpip_func_test.go Loading commit data...
transport.go Loading commit data...
transport_test.go Loading commit data...