qemu-irix/hw/display
Benjamin Herrenschmidt d16136d22a cirrus: Fix host CPU blits
Commit b2eb849d4b
"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>
2014-07-11 10:17:02 +02:00
..
Makefile.objs
ads7846.c
blizzard.c
blizzard_template.h
cg3.c cg3: add extra check to prevent CG3 register array overflow 2014-06-05 20:51:30 +01:00
cirrus_vga.c cirrus: Fix build of debug code 2014-07-11 10:17:01 +02:00
cirrus_vga_rop.h cirrus: Fix host CPU blits 2014-07-11 10:17:02 +02:00
cirrus_vga_rop2.h
cirrus_vga_template.h
exynos4210_fimd.c
framebuffer.c
framebuffer.h
g364fb.c
jazz_led.c
milkymist-tmu2.c
milkymist-vgafb.c
milkymist-vgafb_template.h
omap_dss.c
omap_lcd_template.h hw: use ld_p/st_p instead of ld_raw/st_raw 2014-06-05 16:04:17 +02:00
omap_lcdc.c
pl110.c
pl110_template.h
pxa2xx_lcd.c
pxa2xx_template.h
qxl-logger.c
qxl-render.c qxl-render: add sanity check 2014-06-13 12:34:57 +02:00
qxl.c spice: fix 32bit build 2014-06-20 16:22:07 +01:00
qxl.h
sm501.c
sm501_template.h hw: use ld_p/st_p instead of ld_raw/st_raw 2014-06-05 16:04:17 +02:00
ssd0303.c
ssd0323.c
tc6393xb.c
tc6393xb_template.h
tcx.c tcx: move initialisation from realizefn to initfn 2014-06-05 20:51:57 +01:00
vga-isa-mm.c
vga-isa.c
vga-pci.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
vga.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
vga.h
vga_int.h
vga_template.h hw: use ld_p/st_p instead of ld_raw/st_raw 2014-06-05 16:04:17 +02:00
vmware_vga.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
xenfb.c xen: build on ARM 2014-07-07 10:37:40 +00:00