From 7c7096d8f875e9235eab738cb79c71c882615121 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 16 Sep 2009 22:29:22 +0200 Subject: Limit the size of acceptable compressed packets --- include/libssh/priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index f24102f..6ad7ca7 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -785,7 +785,7 @@ unsigned char *bin_to_base64(const unsigned char *source, int len); /* gzip.c */ int compress_buffer(SSH_SESSION *session,ssh_buffer buf); -int decompress_buffer(SSH_SESSION *session,ssh_buffer buf); +int decompress_buffer(SSH_SESSION *session,ssh_buffer buf, size_t maxlen); /* wrapper.c */ int crypt_set_algorithms(SSH_SESSION *); -- cgit