[Akonadi] [Bug 397131] kmail crash due to MonitorPrivate::emitItemsNotification accessing empty items

Daniel Vrátil bugzilla_noreply at kde.org
Thu Aug 16 10:38:51 BST 2018


https://bugs.kde.org/show_bug.cgi?id=397131

Daniel Vrátil <dvratil at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/ako
                   |                            |nadi/f8fc30bac58da423038906
                   |                            |fe86cd00393df14bb9
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |5.9.0

--- Comment #1 from Daniel Vrátil <dvratil at kde.org> ---
Git commit f8fc30bac58da423038906fe86cd00393df14bb9 by Daniel Vrátil.
Committed on 16/08/2018 at 09:38.
Pushed by dvratil into branch 'Applications/18.08'.

Monitor: rebuild Item from ntf if it's mustRetrieve but IFS is empty

When Monitor's IFS is empty and it receives an Item notification
with mustRetrieve set to true, then the retrieval is bypassed, but
the later on the code attempts to extract a result from cache which
results crash as we try to access elements in an empty list.

The fix is to send as much metadata as we can in the mustRetrieve
notification, and the Monitor needs to rebuild the Item from the
metadata instead of attempting retrieval.
FIXED-IN: 5.9.0

M  +1    -1    src/core/monitor_p.cpp
M  +5    -0    src/server/storage/notificationcollector.cpp

https://commits.kde.org/akonadi/f8fc30bac58da423038906fe86cd00393df14bb9

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list