svx/source/table/tablelayouter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 52869df3f080aae37a1a6fa24e3bd6404ed67646 Author: Caolán McNamara <caol...@redhat.com> 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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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 libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits