[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Mon Jun 26 15:34:04 UTC 2017
sc/source/core/data/table2.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e9b91268635859be3aba841fe1ea142e82a93254
Author: Eike Rathke <erack at redhat.com>
Date: Mon Jun 26 17:32:39 2017 +0200
assert( nStartCol + nSize <= MAXCOL+1 ); tdf#108788 prep
Change-Id: I647253f32bfac0460c263f662ab95ec0151bf38c
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index e63c23c3e2c2..98bcf2068a5c 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -361,6 +361,7 @@ void ScTable::DeleteCol(
{
if (pColWidth && pColFlags)
{
+ assert( nStartCol + nSize <= MAXCOL+1 ); // moving 0 if ==MAXCOL+1 is correct
memmove( &pColWidth[nStartCol], &pColWidth[nStartCol+nSize],
(MAXCOL - nStartCol + 1 - nSize) * sizeof(pColWidth[0]) );
memmove( &pColFlags[nStartCol], &pColFlags[nStartCol+nSize],
More information about the Libreoffice-commits
mailing list