Daniel Vrátil <> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |
                   |                            |pim-runtime/c9254f3497e0cd3
                   |                            |7039333c17085b064e3b323a2

--- Comment #6 from Daniel Vrátil <> ---
Git commit c9254f3497e0cd37039333c17085b064e3b323a2 by Daniel Vrátil, on behalf
of Grzegorz Kowal.
Committed on 10/08/2018 at 09:20.
Pushed by dvratil into branch 'Applications/18.08'.

Fix array access bounds in IMAP resource

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.

Reviewers: #kde_pim, dvratil

Reviewed By: #kde_pim, dvratil

Subscribers: mlaurent, cfeck, kde-pim

Tags: #kde_pim

Differential Revision:

M  +2    -2    resources/shared/singlefileresource/imapquotaattribute.cpp

You are receiving this mail because:
You are watching all bug changes.

Reply via email to