lotuswordpro/source/filter/lwpparastyle.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d4bb2a9e17c0ce5188cefae8dd6cc16564b29521
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Jan 18 10:44:11 2018 +0000

    ofz#5468 Integer-overflow
    
    Change-Id: Ie2792b7dffaffe939778a1546653424ac03ea30e
    Reviewed-on: https://gerrit.libreoffice.org/48105
    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/lotuswordpro/source/filter/lwpparastyle.cxx 
b/lotuswordpro/source/filter/lwpparastyle.cxx
index 9ebf5e7b3303..ea8ff180c0b8 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -440,8 +440,8 @@ void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* 
pParaStyle, LwpInden
         {
             if (pPara->GetBulletFlag())
             {
-                pTotalIndent->SetMAll(pParentIndent->GetMAll() + 
pTotalIndent->GetMAll());
-                pTotalIndent->SetMRight(pParentIndent->GetMRight()+ 
pTotalIndent->GetMRight());
+                
pTotalIndent->SetMAll(o3tl::saturating_add(pParentIndent->GetMAll(), 
pTotalIndent->GetMAll()));
+                
pTotalIndent->SetMRight(o3tl::saturating_add(pParentIndent->GetMRight(), 
pTotalIndent->GetMRight()));
                 
pParaStyle->SetMargins(LwpTools::ConvertToMetric(LwpTools::ConvertFromUnits(
                     pTotalIndent->GetMAll())), pTotalIndent->GetRight());
                 pPara->SetIndent(pTotalIndent.release());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to