<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xdg-screensaver: libdbus assertion when window title is not valid UTF-8"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108121">108121</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-screensaver: libdbus assertion when window title is not valid UTF-8
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>iain@orangesquash.org.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=141830" name="attach_141830" title="xdg-screensaver: Sanitise window name before sending it over the bus">attachment 141830</a> <a href="attachment.cgi?id=141830&action=edit" title="xdg-screensaver: Sanitise window name before sending it over the bus">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=108121&attachment=141830'>[review]</a>
xdg-screensaver: Sanitise window name before sending it over the bus

I first saw this on Launchpad:

  <a href="https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1743216">https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1743216</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>