diff options
author | Andrew den Exter <andrew.den.exter@jollamobile.com> | 2014-04-16 23:33:38 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-17 03:09:41 +0200 |
commit | de8204ba90d03e2b4c1764cb29d2f1ddf30d6fc0 (patch) | |
tree | 598afbb173c1a9b6a1ac520b24c0b6aa4d34c383 | |
parent | f6640180b90d791492a3cff0f80c09d5a853d683 (diff) |
Fix array overrun when new items are appended to a result set.
Check the correct iterator in the loop guard.
Change-Id: I1b6092febdc09ca908e9fab1716d98c3ebd6ec6f
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
-rw-r--r-- | src/gallery/tracker/qgallerytrackerresultset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallery/tracker/qgallerytrackerresultset.cpp b/src/gallery/tracker/qgallerytrackerresultset.cpp index d056421..c6ca213 100644 --- a/src/gallery/tracker/qgallerytrackerresultset.cpp +++ b/src/gallery/tracker/qgallerytrackerresultset.cpp @@ -142,7 +142,7 @@ void QGalleryTrackerResultSetPrivate::synchronize() } else { break; } - } while (iBegin != rEnd && iBegin != iEnd); + } while (rBegin != rEnd && iBegin != iEnd); if (changed) { const_row_iterator rIt = rBegin; |