Kaydet (Commit) f1fcf129 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

forcepoint #30 check validity of group range

Change-Id: Ie0611f36809b051ce46030e44c137b4e1f8d2fe0
Reviewed-on: https://gerrit.libreoffice.org/51865Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit e82beb08)
üst 27f1a444
...@@ -3085,6 +3085,8 @@ public: ...@@ -3085,6 +3085,8 @@ public:
xPrevGrp->mnLength += xCurGrp->mnLength; xPrevGrp->mnLength += xCurGrp->mnLength;
pCur->SetCellGroup(xPrevGrp); pCur->SetCellGroup(xPrevGrp);
sc::formula_block::iterator itGrpEnd = it; sc::formula_block::iterator itGrpEnd = it;
if (xCurGrp->mnLength > std::distance(itGrpEnd, itEnd))
throw css::lang::IllegalArgumentException();
std::advance(itGrpEnd, xCurGrp->mnLength); std::advance(itGrpEnd, xCurGrp->mnLength);
for (++it; it != itGrpEnd; ++it) for (++it; it != itGrpEnd; ++it)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment