summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-05 10:46:40 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-05 15:39:23 +0200
commit8379aaee531e469687aaceba27f5afd697a0d86d (patch)
tree073aebc846b69f35140b6b877bf71c1c95c549ab
parent79d1c80892b36d2c155aa6112de8b1a7b1e07ae8 (diff)
ofz#67765 Integer-overflow
Change-Id: I49b1a5024352575a3867500c15f542863c273e93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165814 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sc/source/filter/rtf/eeimpars.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index 38f3f73e89aa..e6f1072f3fbe 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -309,7 +309,7 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu
ScMF::Hor );
if ( pE->nRowOverlap > 1 )
{
- nRO = nRow + (pE->nRowOverlap - 1);
+ nRO = o3tl::saturating_add(nRow, pE->nRowOverlap - 1);
mpDoc->ApplyFlagsTab( nCol, nRow+1,
nCol, nRO , nTab,
ScMF::Ver );