D8968: Prevent index out of range in case of empty or malformed filename
Daniel Vrátil
noreply at phabricator.kde.org
Sun Nov 26 09:51:26 GMT 2017
dvratil added a comment.
You are right that the code should return an empty string in case the filename is missing in the payload data. I'll add that in a separate commit since it requires that the situation is correctly handled by all users of this method.
Merging this safety still makes sense in case some other corruption occurs, so please fix the code as Sandro requested.
REPOSITORY
R165 Akonadi
REVISION DETAIL
https://phabricator.kde.org/D8968
To: ahartmetz, #kde_pim, dvratil
Cc: knauss, #kde_pim, dvasin, winterz, vkrause, mlaurent, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20171126/aa674521/attachment.html>
More information about the kde-pim
mailing list