sc/inc/fillinfo.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fc6055b84c3ec4dd021aff723c7c318b2d19d1de Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Mar 23 12:26:45 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 23 16:50:43 2022 +0100 forcepoint#81 fix array size A mistake from 694148a9898b47d749588f9a32173a9933262e29, the array is meant to be from column 0, so as if 'nStartCol == 0'. Change-Id: I7f2ecea6c7378d0d5530cb38314807a8f7c896c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131972 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx index e348f7648bc7..1a6ebaee53d2 100644 --- a/sc/inc/fillinfo.hxx +++ b/sc/inc/fillinfo.hxx @@ -221,7 +221,7 @@ struct RowInfo nEndCol = endCol; #endif pCellInfo = new ScCellInfo[ endCol - nStartCol + 1 + 2 ]; - pBasicCellInfo = new ScBasicCellInfo[ endCol + 2 ]; + pBasicCellInfo = new ScBasicCellInfo[ endCol + 1 + 2 ]; } void freeCellInfo() {