[Portland-bugs] [Bug 108121] New: xdg-screensaver: libdbus assertion when window title is not valid UTF-8

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 2 09:47:07 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=108121

            Bug ID: 108121
           Summary: xdg-screensaver: libdbus assertion when window title
                    is not valid UTF-8
           Product: Portland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: iain at orangesquash.org.uk

Created attachment 141830
  --> https://bugs.freedesktop.org/attachment.cgi?id=141830&action=edit
xdg-screensaver: Sanitise window name before sending it over the bus

I first saw this on Launchpad:

  https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1743216

When the window title of the WID passed to suspend is invalid utf-8, we get a
crash like this:

dbus[19455]: arguments to dbus_message_iter_append_basic() were incorrect,
assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file
../../../dbus/dbus-message.c line 2754.

Here's a patch to use Encode (in perl core since 5.8 apparently) to replace
such characters with U+FFFD.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20181002/3489dd82/attachment.html>


More information about the Portland-bugs mailing list