summaryrefslogtreecommitdiffstats
path: root/hw/xen/xen_backend.c
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2014-06-30 10:07:54 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-07-01 13:26:40 +0200
commitf9a70e79391f6d7c2a912d785239ee8effc1922d (patch)
treef95be292b3ca307867ec831a3cef9720578ac04f /hw/xen/xen_backend.c
parentb3959efdbb2dc3d5959e3b0a8e188126930beca8 (diff)
downloadhqemu-f9a70e79391f6d7c2a912d785239ee8effc1922d.zip
hqemu-f9a70e79391f6d7c2a912d785239ee8effc1922d.tar.gz
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>
Diffstat (limited to 'hw/xen/xen_backend.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud