[Wayland-bugs] [Bug 789564] New: segfault in _gdk_wayland_cursor_set_scale

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 27 15:45:06 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789564

            Bug ID: 789564
           Summary: segfault in _gdk_wayland_cursor_set_scale
    Classification: Platform
           Product: gtk+
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: vliaskovitis at suse.com
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 362419
  --> https://bugzilla.gnome.org/attachment.cgi?id=362419&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171027/0550d5e5/attachment.html>


More information about the wayland-bugs mailing list