diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-06-14 12:28:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-10 09:58:33 +0100 |
commit | ce3e14175ea36d851aede808fc8891313b91ec27 (patch) | |
tree | 80b4c420729f086b03f457b37e53fea81900b185 /ui/x_keymap.c | |
parent | 57c83dacfe179bf061b8fa79d9553ebabe4d2ff4 (diff) | |
download | qemu-ce3e14175ea36d851aede808fc8891313b91ec27.tar.gz qemu-ce3e14175ea36d851aede808fc8891313b91ec27.tar.bz2 qemu-ce3e14175ea36d851aede808fc8891313b91ec27.zip |
Fix vnc memory corruption with width = 1400
vnc assumes that the screen width is a multiple of 16 in several places.
If this is not the case vnc will overrun buffers, corrupt memory, make
qemu crash.
This is the minimum fix for this bug. It makes sure we don't overrun the
scanline, thereby fixing the segfault. The rendering is *not* correct
though, there is a black border at the right side of the screen, 8
pixels wide because 1400 % 16 == 8.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/x_keymap.c')
0 files changed, 0 insertions, 0 deletions