Avoid a possible array overrun. (Coverity)

2006-04-16  Matthias Clasen <mclasen@redhat.com>

        * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
        possible array overrun.  (Coverity)
This commit is contained in:
Matthias Clasen 2006-04-16 05:05:49 +00:00 committed by Matthias Clasen
parent d121da8531
commit dfc29f83ae
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,11 @@
2006-04-16 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
possible array overrun. (Coverity)
* gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
possible array overrun. (Coverity)
* gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
Avoid a NULL dereference. (Coverity)

View File

@ -1,5 +1,11 @@
2006-04-16 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
possible array overrun. (Coverity)
* gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
possible array overrun. (Coverity)
* gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
Avoid a NULL dereference. (Coverity)

View File

@ -1250,7 +1250,7 @@ set_initial_hints (GdkWindow *window)
Window xwindow = GDK_WINDOW_XID (window);
GdkWindowObject *private;
GdkToplevelX11 *toplevel;
Atom atoms[7];
Atom atoms[9];
gint i;
private = (GdkWindowObject*) window;