From e62479574741849d8f0b68d4b05bc47ce3a5fbd4 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 3 Jun 2019 08:38:32 +0100 Subject: [PATCH] common-graphics-channel: Avoid closing server if client send huge messages The Cursor/DisplayChannel is not expecting large messages (which are protocol violations). This fixes https://gitlab.freedesktop.org/spice/spice-server/issues/11. Signed-off-by: Frediano Ziglio Acked-by: Victor Toso --- server/common-graphics-channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/common-graphics-channel.c b/server/common-graphics-channel.c index 92349ce4..cea805d0 100644 --- a/server/common-graphics-channel.c +++ b/server/common-graphics-channel.c @@ -53,7 +53,7 @@ static uint8_t *common_alloc_recv_buf(RedChannelClient *rcc, uint16_t type, uint } if (size > CHANNEL_RECEIVE_BUF_SIZE) { - spice_critical("unexpected message size %u (max is %d)", size, CHANNEL_RECEIVE_BUF_SIZE); + spice_warning("unexpected message size %u (max is %d)", size, CHANNEL_RECEIVE_BUF_SIZE); return NULL; } return common->priv->recv_buf;