Bug 108121

Summary: xdg-screensaver: libdbus assertion when window title is not valid UTF-8
Product: Portland Reporter: Iain Lane <iain>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
i915 platform: i915 features:
Attachments: xdg-screensaver: Sanitise window name before sending it over the bus

Description Iain Lane 2018-10-02 09:47:07 UTC
Created attachment 141830 [details] [review]
xdg-screensaver: Sanitise window name before sending it over the bus

I first saw this on Launchpad:


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.
Comment 1 GitLab Migration User 2019-02-16 13:40:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/xdg-utils/issues/137.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.