]> git.ipfire.org Git - thirdparty/qemu.git/commit
ati-vga: Fix checks in ati_2d_blt() to avoid crash
authorBALATON Zoltan <balaton@eik.bme.hu>
Mon, 6 Apr 2020 20:34:26 +0000 (22:34 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:14:54 +0000 (12:14 -0500)
commit01392ae31a38294c1771eeed0dada1e224493492
tree22e7d4510e89cac3b7d08d69ff49dff64afa46ae
parent4e98c388d6b07a7b8b760491b07bcfd887c35e23
ati-vga: Fix checks in ati_2d_blt() to avoid crash

In some corner cases (that never happen during normal operation but a
malicious guest could program wrong values) pixman functions were
called with parameters that result in a crash. Fix this and add more
checks to disallow such cases.

Reported-by: Ziming Zhang <ezrakiez@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 20200406204029.19559747D5D@zero.eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ac2071c3791b67fc7af78b8ceb320c01ca1b5df7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/ati_2d.c