]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
In SSH2, if decrypting the packet length gave us a negative value,
authorSimon Tatham <anakin@pobox.com>
Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)
commit67cb02d03d74fb9d01c40af4f4a1014d38a04dd9
tree2fd86ab5ee561656a901dc7705ef5927a3522fdc
parent61a7dd82ca6b8ac407f7f90055312b2826bc7fbe
In SSH2, if decrypting the packet length gave us a negative value,
subsequent packet-receiver code would fail to notice anything was
wrong and segfault. Since this is clearly a silly packet length
anyway, we now explicitly reject it as a daft encryption error.

[originally from svn r1852]
ssh.c