summary refs log tree commit diff stats
path: root/scripts/vmstate-static-checker.py
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-07 10:32:34 +1000
committerGerd Hoffmann <kraxel@redhat.com>2014-07-11 10:17:02 +0200
commitd16136d22af0fcf0d651de04c9e3cbc7137cc6f9 (patch)
treeb667e257de01f24e77031f64ca21f5c31b414bd5 /scripts/vmstate-static-checker.py
parente8ee4b68bed36471b014c23209299c84b8d4a01b (diff)
downloadfocaccia-qemu-d16136d22af0fcf0d651de04c9e3cbc7137cc6f9.tar.gz
focaccia-qemu-d16136d22af0fcf0d651de04c9e3cbc7137cc6f9.zip
cirrus: Fix host CPU blits
Commit b2eb849d4b1fdb6f35d5c46958c7f703cf64cfef
"CVE-2007-1320 - Cirrus LGD-54XX "bitblt" heap overflow" broke
cpu to video blits.

When the ROP function is called from cirrus_bitblt_cputovideo_next(),
we pass 0 for the pitch but only operate on one line at a time. The
added test was tripping because after the initial substraction, the
pitch becomes negative. Make the test only trip when the height is
larger than one (ie. the pitch is actually used).

This fixes HW cursor support in Windows NT4.0 (which otherwise was
a white rectangle) and general display of icons in that OS when using
8bpp mode.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/vmstate-static-checker.py')
0 files changed, 0 insertions, 0 deletions