summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-01-22 01:35:58 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-01-22 01:37:08 +0100
commitb026e5a4a17babd43cac266b06ad49e12f9aa225 (patch)
treee6b3ed05d3a8445977e801fd4858a55900ea929a /dbaccess
parentandroid: hard-code path to 'lofficerc' in assets/ (diff)
downloadcore-b026e5a4a17babd43cac266b06ad49e12f9aa225.tar.gz
core-b026e5a4a17babd43cac266b06ad49e12f9aa225.zip
ORowSetCache::fillMatrix(): correct off-by-one error
Symptom: segfault. Thanks to Julien Nabet for precise pointer to problematic code.
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index bcc86521bca9..87655f476cd2 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -760,7 +760,7 @@ sal_Bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos,sal_Int32 _nNewEndPos
if ( _nNewStartPos == -1 )
{
aIter = m_pMatrix->begin() + (m_nEndPos - m_nStartPos);
- i = m_nEndPos;
+ i = m_nEndPos + 1;
}
else
{