[Kde-pim] Review Request 125609: Don't crash showing context menu for attachments with unknown mimetypes
Allen Winter
winter at kde.org
Mon Oct 12 20:33:53 BST 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125609/
-----------------------------------------------------------
(Updated Oct. 12, 2015, 7:33 p.m.)
Status
------
This change has been marked as submitted.
Review request for KDEPIM and Laurent Montel.
Changes
-------
Submitted with commit 58c6adabd4fd984536281c34f1641873528ca63a by Allen Winter to branch KDE/4.14.
Repository: kdepim
Description
-------
KMimeType::mimeType() can return 0 so this code could crash.
Diffs
-----
messagecomposer/attachment/attachmentcontrollerbase.cpp 2e45d19
Diff: https://git.reviewboard.kde.org/r/125609/diff/
Testing
-------
was crashing on an attachment with type application/x-pkcs7-signature. for some reason KMimeType::mimeType() is returning 0 for that. the apidoc says KMimeType::mimeType() can return 0 so this is the right thing to do in any event.
doesn't crash now.
Probably needs to be merged to modern KDEPIM.
Thanks,
Allen Winter
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list