Skip to content

Notification: ensure arg is StructureType when decoding ImageHint

Akseli Lahtinen requested to merge work/cherry-pick-390d4fa6 into Plasma/5.27

If arg is any other type than StructureType, broken imagehint would crash plasmashell. This change checks for the imagehint that it is correct type.

It is better to return no image at all than crash whole shell.

Tested with the ruby code attachment in the bug report.

BUG:481033

(cherry picked from commit 390d4fa6)

Merge request reports

Loading