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:
Daemonratte 2026-08-12 20:59:11 +02:00
commit f8ff879dd2

View file

@ -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;