Prasad J Pandit 4c65fed8bd ui: vnc: avoid floating point exception
While sending 'SetPixelFormat' messages to a VNC server,
the client could set the 'red-max', 'green-max' and 'blue-max'
values to be zero. This leads to a floating point exception in
write_png_palette while doing frame buffer updates.

Reported-by: Lian Yihan <lianyihan@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2015-12-03 13:34:50 +00:00
..
2015-10-08 10:31:35 +02:00
2015-05-29 11:11:38 +02:00
2015-11-06 10:16:03 +01:00
2015-10-08 10:31:35 +02:00
2014-09-16 08:07:05 +02:00
2015-10-08 10:31:35 +02:00
2015-11-02 08:30:26 +01:00
2015-12-03 13:34:50 +00:00
2015-10-20 14:59:09 +01:00