svx/source/table/tablelayouter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 52869df3f080aae37a1a6fa24e3bd6404ed67646
Author: Caolán McNamara <[email protected]>
Date:   Tue Nov 28 10:02:28 2017 +0000

    ofz#4461 Integer-overflow
    
    Change-Id: Iae41823164c09352ef8ffa97dc3361476c03add8
    Reviewed-on: https://gerrit.libreoffice.org/45396
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/svx/source/table/tablelayouter.cxx 
b/svx/source/table/tablelayouter.cxx
index e0ba76552c61..d1de33c1b464 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -805,7 +805,7 @@ void TableLayouter::LayoutTableHeight( tools::Rectangle& 
rArea, bool bFit )
     for( nRow = 0; nRow < nRowCount; ++nRow )
     {
         maRows[nRow].mnPos = nNewHeight;
-        nNewHeight += maRows[nRow].mnSize;
+        nNewHeight = o3tl::saturating_add(nNewHeight, maRows[nRow].mnSize);
 
         if( bFit )
         {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to