Commit 080253c2 authored by Matthias Clasen's avatar Matthias Clasen

Protect against XKB being stupid. Reported by Pedro Villavicencio.

        * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect
        against XKB being stupid. Reported by Pedro Villavicencio.



svn path=/trunk/; revision=20413
parent 9dd2aa7e
2008-06-16 Matthias Clasen <mclasen@redhat.com>
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 <mitch@imendio.com>
* gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment