diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-26 17:32:39 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-26 17:33:24 +0200 |
commit | e9b91268635859be3aba841fe1ea142e82a93254 (patch) | |
tree | 8f27051a1668905dc3a10e8373755f3c2ae10924 | |
parent | 12ca907139c05ded23cb22aab2e03a52645adfa0 (diff) |
assert( nStartCol + nSize <= MAXCOL+1 ); tdf#108788 prep
Change-Id: I647253f32bfac0460c263f662ab95ec0151bf38c
-rw-r--r-- | sc/source/core/data/table2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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], |