D14554: Fix segfaults in libsinglefileresource.so

Grzegorz Kowal noreply at phabricator.kde.org
Thu Aug 2 13:41:13 BST 2018


gkowal created this revision.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: kde-pim.
gkowal requested review of this revision.

REVISION SUMMARY
  ImapQuotaAttribute::serialized() processes IMAP roots assigning corresponding QUOTA and USAGE attributes to each root. It uses three dictionaries: mRoots, mLimits, and mUsages assuming that these dictionaries always have the same number of  elements. In a case when mRoots contains more elements than other two dictionaries, this causes referencing to non-existent elements in mLimits and mUsages and segfaults.
  
  Fix this by using mLimits.size() and mUsages.size() in corresponding loops.
  
  Resolves: #396980

REPOSITORY
  R44 KDE PIM Runtime

REVISION DETAIL
  https://phabricator.kde.org/D14554

AFFECTED FILES
  resources/shared/singlefileresource/imapquotaattribute.cpp

To: gkowal
Cc: kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180802/f91cdf8b/attachment.html>


More information about the kde-pim mailing list