[Libreoffice-commits] core.git: Branch 'feature/fixes22' - sc/source
Marco Cecchetti
marco.cecchetti at collabora.com
Tue May 31 08:44:56 UTC 2016
sc/source/core/tool/scmatrix.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 5a1f90b0c1ae956f8ad9b6a3fac9419066c0abdb
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Tue May 31 10:42:06 2016 +0200
sc - s/w interpreter - row start can be beyond data row end
Change-Id: I33658c87c21d1be237f4675241e3eabdd4ec7058
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 47652d2..c70bf71 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -3065,6 +3065,10 @@ void ScVectorRefMatrix::ensureFullMatrix()
size_t nRowSize = mnRowSize;
size_t nRowEnd = mnRowStart + mnRowSize;
size_t nDataRowEnd = mpToken->GetArrayLength();
+
+ if (mnRowStart >= nDataRowEnd)
+ return;
+
if (nRowEnd > nDataRowEnd)
{
// Data array is shorter than the row size of the reference. Truncate
More information about the Libreoffice-commits
mailing list