<table><tr><td style="">gkowal created this revision.<br />Restricted Application added a project: KDE PIM.<br />Restricted Application added a subscriber: kde-pim.<br />gkowal requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14554">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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.</p>
<p>Fix this by using mLimits.size() and mUsages.size() in corresponding loops.</p>
<p>Resolves: #396980</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14554">https://phabricator.kde.org/D14554</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>resources/shared/singlefileresource/imapquotaattribute.cpp</div></div></div><br /><div><strong>To: </strong>gkowal<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>