diff --git a/ChangeLog b/ChangeLog index 8fe627aa91..41b0bd5beb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-16 Matthias Clasen + + Bug 508751 – gnome-terminal crashed with SIGSEGV after keypress + + * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect + against XKB being stupid. Reported by Pedro Villavicencio. + 2008-06-17 Michael Natterer * gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref() diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c index 6d654e5bf4..ee50eea1f3 100644 --- a/gdk/x11/gdkkeys-x11.c +++ b/gdk/x11/gdkkeys-x11.c @@ -1661,7 +1661,7 @@ _gdk_keymap_key_is_modifier (GdkKeymap *keymap, { XkbDescRec *xkb = get_xkb (keymap_x11); - if (xkb->map->modmap[keycode] != 0) + if (xkb->map->modmap && xkb->map->modmap[keycode] != 0) return TRUE; } else