diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-12-11 12:13:21 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-12-11 13:33:59 +0000 |
commit | cc6da0af33380eb598ecfd47b4c4bde8db764289 (patch) | |
tree | ae72671973fbe3e003c24b433d3d1a59b19e10e4 /ucb | |
parent | 611354a1c2e8281a80a1c3f5076a6c4593a4fe10 (diff) |
fix out of bounds access
since commit 96ec36cf261eec3ec07f3caa2673a916571c4287
Date: Thu Dec 8 21:49:47 2016 +0100
ucb: replace "SimpleList" trash
found by cppcheck
Change-Id: I13d62bdb6cb1a714182f90078d4a2990c790301a
Reviewed-on: https://gerrit.libreoffice.org/31856
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/sorter/sortresult.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx index 5a289b5350a7..24a507a066a7 100644 --- a/ucb/source/sorter/sortresult.cxx +++ b/ucb/source/sorter/sortresult.cxx @@ -1492,7 +1492,7 @@ void SortedResultSet::Remove( sal_IntPtr nPos, sal_IntPtr nCount, EventList *pEv sal_IntPtr nSortPos = m_O2S[nPos]; m_O2S.erase(m_O2S.begin() + nPos); - for (size_t j=1; j <= m_O2S.size(); ++j) + for (size_t j=1; j < m_O2S.size(); ++j) { sal_IntPtr nVal = m_O2S[j]; if ( nVal > nSortPos ) |