Peter Lieven f9a70e7939 ui/vnc: limit client_cut_text msg payload size
currently a malicious client could define a payload
size of 2^32 - 1 bytes and send up to that size of
data to the vnc server. The server would allocated
that amount of memory which could easily create an
out of memory condition.

This patch limits the payload size to 1MB max.

Please note that client_cut_text messages are currently
silently ignored.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2014-07-01 13:26:40 +02:00
..
2014-06-23 11:12:28 -04:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:30 +01:00
2012-12-19 08:31:31 +01:00
2014-05-26 08:42:43 +02:00
2014-06-04 08:40:41 +02:00
2014-05-16 08:30:11 +02:00
2014-06-02 16:28:58 +02:00
2014-03-10 13:49:44 +01:00
2014-06-23 11:12:28 -04:00
2014-06-20 16:22:07 +01:00
2014-03-11 10:53:17 +00:00
2012-11-01 19:49:45 +01:00
2013-08-22 19:10:27 +02:00
2013-05-03 12:04:57 -05:00
2014-06-23 11:12:28 -04:00