ati: use vga_read_byte in ati_cursor_define
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Sep 2019 11:14:41 +0000 (13:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Sep 2019 08:37:46 +0000 (10:37 +0200)
commitaab0e2a661b2b6bf7915c0aefe807fb60d6d9d13
treecda07abba0839d78f747899893195efce6d48cc2
parent145e543eb3c9564e13b821869693bc977c409a0b
ati: use vga_read_byte in ati_cursor_define

This makes sure reads are confined to vga video memory.

v3: use uint32_t, fix cut+paste bug.
v2: fix ati_cursor_draw_line too.

Reported-by: xu hang <flier_m@outlook.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190917111441.27405-3-kraxel@redhat.com
hw/display/ati.c