x11: size available depth array correctly
Visual initialization considers eight possible depths, but GdkScreenX11 only reserved space for seven. Reserve all eight entries so a server exposing every considered depth cannot write past the array.
This commit is contained in:
parent
fa2e5d3293
commit
f8ff879dd2
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ struct _GdkScreenX11
|
|||
GdkVisualPrivate *system_visual;
|
||||
GdkVisualPrivate **visuals;
|
||||
gint nvisuals;
|
||||
gint available_depths[7];
|
||||
gint available_depths[8];
|
||||
gint navailable_depths;
|
||||
GdkVisualType available_types[6];
|
||||
gint navailable_types;
|
||||
|
|
|
|||
Loading…
Reference in a new issue