mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
test-display-base: Avoid global buffer overflow
For some reasons (documented in cursor_init) the function uses 128 extra bytes of data causing a reading buffer overflow. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
8bf7c7803d
commit
230dcf82c3
@ -694,7 +694,7 @@ static void release_resource(SPICE_GNUC_UNUSED QXLInstance *qin,
|
||||
|
||||
static struct {
|
||||
QXLCursor cursor;
|
||||
uint8_t data[CURSOR_WIDTH * CURSOR_HEIGHT * 4]; // 32bit per pixel
|
||||
uint8_t data[CURSOR_WIDTH * CURSOR_HEIGHT * 4 + 128]; // 32bit per pixel
|
||||
} cursor;
|
||||
|
||||
static void cursor_init(void)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user