[Libreoffice-commits] core.git: Branch 'feature/calc-group-interpreter' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Tue Jul 2 06:27:02 PDT 2013
sc/source/core/data/column2.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3c551f66ff33e4055d19f688c28ba29c762f16a8
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Jul 2 09:24:09 2013 -0400
Try not to iterate beyond the end of the formula block.
Or else a crash would ensue...
Change-Id: Ib08163ba91e4bac023ae778c704a0c052fa48ebb
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index f68959d..ef32f54 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -2261,8 +2261,9 @@ const double* ScColumn::FetchDoubleArray( sc::FormulaGroupContext& rCxt, SCROW n
return &rArray[0];
}
+ // Requested length goes beyond a single block. Fill the array
+ // with the content of this formula block first.
itEnd = sc::formula_block::end(*aPos.first->data);
- std::advance(itEnd, nLenRequested);
for (; it != itEnd; ++it)
{
ScFormulaCell& rCell = **it;
More information about the Libreoffice-commits
mailing list