[Differential] [Request, 96 lines] D3149: [server] Fix possible crash on creation of DataDevice

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Mon Oct 24 09:08:09 UTC 2016


graesslin created this revision.
graesslin added a reviewer: Plasma on Wayland.
Restricted Application added a subscriber: plasma-devel.
Restricted Application added a project: Plasma on Wayland.

REVISION SUMMARY
  This is a similar condition as https://phabricator.kde.org/D3148. If a DataDeviceInterface is
  created for the currently focused keyboard Surface the current selection
  is sent to the new DataDeviceInterface. If the current selection does
  not have a DataSourceInterface a DataOfferInterface for a null
  DataSourceInterface would be created and result in a crash.
  
  This change verifies that there is a DataSourcInterface on the current
  selection prior to sending out the selection.

TEST PLAN
  A test case is added which simulates the condition by
  using two clients.

REPOSITORY
  rKWAYLAND KWayland

BRANCH
  selection-ddi-creation

REVISION DETAIL
  https://phabricator.kde.org/D3149

AFFECTED FILES
  autotests/client/test_wayland_seat.cpp
  src/server/seat_interface.cpp

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, #plasma_on_wayland
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161024/61afb2cf/attachment.html>


More information about the Plasma-devel mailing list