mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
Avoid integer overflow for Drawable::refs field
This fixes a regression caused by
a43c21b6bc
("DCC: change how fill_bits() marshalls data by reference").
Before the mentioned patch there were a few references to Drawable
structure so an uint8_t was enough.
Now that every chunk of the image is accounted you can easily
get an overflow.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=99258.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
af390d53ca
commit
1e1ed93ea7
@ -81,7 +81,7 @@ typedef struct DependItem {
|
||||
} DependItem;
|
||||
|
||||
struct Drawable {
|
||||
uint8_t refs;
|
||||
uint32_t refs;
|
||||
RingItem surface_list_link;
|
||||
RingItem list_link;
|
||||
DrawItem tree_item;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user