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 --- libssh/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/packet.c') diff --git a/libssh/packet.c b/libssh/packet.c index f0a56b1..0952f34 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -192,7 +192,7 @@ static int packet_read2(SSH_SESSION *session) { #if defined(HAVE_LIBZ) && defined(WITH_LIBZ) if (session->current_crypto && session->current_crypto->do_compress_in) { ssh_log(session, SSH_LOG_PACKET, "Decompressing in_buffer ..."); - if (decompress_buffer(session, session->in_buffer) < 0) { + if (decompress_buffer(session, session->in_buffer, MAX_PACKET_LEN) < 0) { goto error; } } -- cgit