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

forcepoint #31 check validity of another group range

Change-Id: I82ff3e47a033c91581b108e1685b1ff4d5865895
Reviewed-on: https://gerrit.libreoffice.org/51883Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit be9e229e)
üst 4f90b5c2
...@@ -3109,6 +3109,8 @@ public: ...@@ -3109,6 +3109,8 @@ public:
{ {
// Previous cell is a regular cell and current cell is a group. // Previous cell is a regular cell and current cell is a group.
nRow += xCurGrp->mnLength; nRow += xCurGrp->mnLength;
if (xCurGrp->mnLength > std::distance(it, itEnd))
throw css::lang::IllegalArgumentException();
std::advance(it, xCurGrp->mnLength); std::advance(it, xCurGrp->mnLength);
pPrev->SetCellGroup(xCurGrp); pPrev->SetCellGroup(xCurGrp);
xCurGrp->mpTopCell = pPrev; xCurGrp->mpTopCell = pPrev;
......
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