diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-22 01:35:58 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-22 01:37:08 +0100 |
commit | b026e5a4a17babd43cac266b06ad49e12f9aa225 (patch) | |
tree | e6b3ed05d3a8445977e801fd4858a55900ea929a /dbaccess | |
parent | 7b0123b9ea3e2f67ea8205cfd38bc5cd28225cb4 (diff) |
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.cxx | 2 |
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 { |