diff options
author | marha <marha@users.sourceforge.net> | 2012-01-24 16:46:55 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-01-24 16:46:55 +0100 |
commit | 6039fd0faf73c9d6c5b2abf9d824734218ec5eee (patch) | |
tree | 88f66f9d7c4763f206de6043ef45c63b94472690 /tools/plink/sshzlib.c | |
parent | b683b8f5675e280a6dd4ab82d6b9394182798b55 (diff) | |
download | vcxsrv-6039fd0faf73c9d6c5b2abf9d824734218ec5eee.tar.gz vcxsrv-6039fd0faf73c9d6c5b2abf9d824734218ec5eee.tar.bz2 vcxsrv-6039fd0faf73c9d6c5b2abf9d824734218ec5eee.zip |
Update to putty 9388
Diffstat (limited to 'tools/plink/sshzlib.c')
-rw-r--r-- | tools/plink/sshzlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/plink/sshzlib.c b/tools/plink/sshzlib.c index 7d37141c7..9c780a41f 100644 --- a/tools/plink/sshzlib.c +++ b/tools/plink/sshzlib.c @@ -1259,6 +1259,8 @@ int zlib_decompress_block(void *handle, unsigned char *block, int len, goto finished;
nlen = dctx->bits & 0xFFFF;
EATBITS(16);
+ if (dctx->uncomplen != (nlen ^ 0xFFFF))
+ goto decode_error;
if (dctx->uncomplen == 0)
dctx->state = OUTSIDEBLK; /* block is empty */
else
@@ -1369,6 +1371,7 @@ int main(int argc, char **argv) const struct ssh_compress ssh_zlib = {
"zlib",
+ "zlib@openssh.com", /* delayed version */
zlib_compress_init,
zlib_compress_cleanup,
zlib_compress_block,
|