Files
qemu/hw/display
Philippe Mathieu-Daudé e12d8edb8a hw/display/qxl: Pass requested buffer size to qxl_phys2virt()
References: bsc#1205808
Git-commit: 8efec0ef8b

Currently qxl_phys2virt() doesn't check for buffer overrun.
In order to do so in the next commit, pass the buffer size
as argument.

For QXLCursor in qxl_render_cursor() -> qxl_cursor() we
verify the size of the chunked data ahead, checking we can
access 'sizeof(QXLCursor) + chunk->data_size' bytes.
Since in the SPICE_CURSOR_TYPE_MONO case the cursor is
assumed to fit in one chunk, no change are required.
In SPICE_CURSOR_TYPE_ALPHA the ahead read is handled in
qxl_unpack_chunks().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20221128202741.4945-4-philmd@linaro.org>
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
2023-07-31 19:20:26 +02:00
..
2020-12-10 12:15:18 -05:00
2017-03-27 12:14:45 +02:00
2021-05-12 18:20:25 +02:00
2021-11-09 16:42:49 +01:00
2020-05-18 15:43:51 +02:00
2021-03-19 15:18:43 +01:00
2019-08-16 13:31:52 +02:00