diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-26 12:50:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-27 00:36:49 +0200 |
commit | 0869602fdfb48ff133338915d210e2190772feef (patch) | |
tree | a796c10e1bf91ee29ee31ecd2481c9efd6657142 /sc | |
parent | c3b6467aa636d9ee8ba6d55d9c9cd7f31f04f0e0 (diff) |
forcepoint #31 check validity of another group range
Change-Id: I82ff3e47a033c91581b108e1685b1ff4d5865895
Reviewed-on: https://gerrit.libreoffice.org/51881
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column3.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 3774086251de..b3a01a4737f3 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -3120,6 +3120,8 @@ public: { // Previous cell is a regular cell and current cell is a group. nRow += xCurGrp->mnLength; + if (xCurGrp->mnLength > std::distance(it, itEnd)) + throw css::lang::IllegalArgumentException(); std::advance(it, xCurGrp->mnLength); pPrev->SetCellGroup(xCurGrp); xCurGrp->mpTopCell = pPrev; |