• 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
..
ebnf Loading commit data...
ebnflint Loading commit data...
gotype Loading commit data...
inotify Loading commit data...
norm Loading commit data...
spdy Loading commit data...
sql Loading commit data...
ssh Loading commit data...
terminal Loading commit data...
types Loading commit data...
winfsnotify Loading commit data...
wingui Loading commit data...
README Loading commit data...