Summary: | kmail crash due to MonitorPrivate::emitItemsNotification accessing empty items | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | GIT (master) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/akonadi/f8fc30bac58da423038906fe86cd00393df14bb9 | Version Fixed In: | 5.9.0 |
Sentry Crash Report: |
Description
Martin Koller
2018-08-03 17:25:07 UTC
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 |