[Differential] [Request, 4 lines] D3954: [MPRIS Data Engine] Don't crash if "Metadata" is a map but of wrong type

broulik (Kai Uwe Broulik) noreply at phabricator.kde.org
Wed Jan 4 12:37:00 UTC 2017


broulik created this revision.
broulik added a reviewer: Plasma.
broulik set the repository for this revision to R120 Plasma Workspace.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  QDBusArgument MapType fits all kinds of maps but when we try to stream a map of type other than a{sv} (which the MRPIS spec requires) into a QVariantMap we would crash. Explicitly check signature to avoid this.
  
  BUG: 374531
  FIXED-IN: 5.8.6

TEST PLAN
  This is clearly an application bug, Metadata *must* be a{sv} according to spec but we shouldn't render Plasma unusable if a client is stupid.
  
  I'll try to create a small testcase and report that issue to Qt, it shouldn't crash in
  
    QVariantMap map;
    map << arg; // oops, it's not a{sv} but a{ss}

REPOSITORY
  R120 Plasma Workspace

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

AFFECTED FILES
  dataengines/mpris2/playercontainer.cpp

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

To: broulik, #plasma
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/20170104/8292b416/attachment.html>


More information about the Plasma-devel mailing list