GNOME Bugzilla – Bug 789564
segfault in _gdk_wayland_cursor_set_scale
Last modified: 2017-10-27 16:07:30 UTC
Created attachment 362419 [details] backtrace I consistently see a segfault in _gdk_wayland_cursor_set_scale using an app (virt-viewer). cursor->name is NULL and g_str_equal tries to dereference it, see backtrace attached. This is with 3.22.4, but should happen in master as well. Commit db49d12fcf3 standarized the name of blank cursors to "none" in _gdk_wayland_display_get_cursor_for_name_with_scale. I assume the problem is that _gdk_wayland_display_get_cursor_for_surface can still create a blank cursor with NULL name.
There is no g_str_equal call in gdk_wayland_cursor_set_scale. I changed it to use g_strcmp0, which is NULL-safe
(In reply to Matthias Clasen from comment #1) > There is no g_str_equal call in gdk_wayland_cursor_set_scale. I changed it > to use g_strcmp0, which is NULL-safe oh right, sorry for the noise, i just saw bug#775217 as well. Closing if there are no objections. *** This bug has been marked as a duplicate of bug 775217 ***