D5681: avoid crash when reading from connection times out
Martin Koller
noreply at phabricator.kde.org
Mon May 1 16:15:23 BST 2017
mkoller created this revision.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.
REVISION SUMMARY
DataStream::waitForData() can time out. When this happens, Protocol::deserialize() throws an exception and the returned pointer
is nullptr, wich is not checked for in the connection.
I had exactly this crash, therefore I found it.
REPOSITORY
R165 Akonadi
REVISION DETAIL
https://phabricator.kde.org/D5681
AFFECTED FILES
src/core/connection.cpp
To: mkoller, dvratil
Cc: #kde_pim, dvasin, ach, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170501/83f49e58/attachment.html>
More information about the kde-pim
mailing list