mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-10 23:57:38 +00:00
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 <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
a84d9c653e
commit
e624795747
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user