qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 4c65fe: ui: vnc: avoid floating point excepti


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 4c65fe: ui: vnc: avoid floating point exception
Date: Thu, 03 Dec 2015 06:00:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 4c65fed8bdf96780735dbdb92a8bd0d6b6526cc3
      
https://github.com/qemu/qemu/commit/4c65fed8bdf96780735dbdb92a8bd0d6b6526cc3
  Author: Prasad J Pandit <address@hidden>
  Date:   2015-12-03 (Thu, 03 Dec 2015)

  Changed paths:
    M ui/vnc.c

  Log Message:
  -----------
  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 <address@hidden>
Signed-off-by: Prasad J Pandit <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]