diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-30 08:42:26 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-30 10:54:48 +0100 |
commit | 84466e76a9a23a07227fa1da132b4bef83edec6e (patch) | |
tree | e295eafd88b2e334946c4add8be27a057694d67d /dbaccess | |
parent | c73a8a1b5f14da14f89c0e98f69aeee86fa6c068 (diff) |
Incrementing end iterator has undefined behavior (dbaccess/cacheset)
Change-Id: I9f4cdacd87cc4802b13c99c15e1d24d11285a375
Reviewed-on: https://gerrit.libreoffice.org/47188
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/CacheSet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx index 785cba2a69cc..46eb35cefce4 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -233,7 +233,7 @@ void OCacheSet::fillParameters( const ORowSetRow& _rRow OUString sIsNull(" IS NULL"); OUString sParam(" = ?"); ORowVector< ORowSetValue >::Vector::const_iterator aIter = _rRow->get().begin()+1; - ORowVector< ORowSetValue >::Vector::const_iterator aEnd = _rRow->get().end()+1; + ORowVector< ORowSetValue >::Vector::const_iterator aEnd = _rRow->get().end(); for(; aIter != aEnd;++aIter,++nCheckCount,++i) { aColumnName = m_xSetMetaData->getColumnName(i); |