[Wayland-bugs] [Bug 735389] client crashes if it gets an invalid keymap from the compositor
gtk+ (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Aug 25 07:38:50 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=735389
gtk+ | Backend: Wayland | unspecified
--- Comment #1 from Carlos Garnacho <carlosg at gnome.org> 2014-08-25 14:38:44 UTC ---
Created an attachment (id=284408)
View: https://bugzilla.gnome.org/attachment.cgi?id=284408
Review: https://bugzilla.gnome.org/review?bug=735389&attachment=284408
wayland: Protect against invalid keymaps gotten from the compositor
If the compositor sends a keymap that fails on "compilation",
xkb_keymap_new_from_string() returns NULL, which makes xkb_state_new()
crash when assuming there is a keymap.
In these cases, gdk must remain with a xkb_state to handle modifiers/keys
properly, so warn about the invalid keymap string, and keep the previous
keymap (currently initialized to "us")
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Wayland-bugs
mailing list