svx/source/table/tablelayouter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0bc9547ff7ad219ae591b645052152b71cc76f6e Author: Caolán McNamara <caol...@redhat.com> Date: Wed Nov 1 11:28:01 2017 +0000 ofz#3886 Integer-overflow Change-Id: I5f7ee16e8b05d7bb7e15ca26e0902ad0c1fed2de Reviewed-on: https://gerrit.libreoffice.org/44164 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 ec3c24a0bed9..63ca7b8c1bcc 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -454,7 +454,7 @@ sal_Int32 TableLayouter::distribute( LayoutVector& rLayouts, sal_Int32 nDistribu { Layout& rLayout = rLayouts[nIndex]; if( (nDistribute > 0) || (rLayout.mnSize > rLayout.mnMinSize) ) - nCurrentWidth += rLayout.mnSize; + nCurrentWidth = o3tl::saturating_add(nCurrentWidth, rLayout.mnSize); } bConstrainsBroken = false;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits