Descriptiongo.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 #MessagesTotal messages: 13
|