lotuswordpro/source/filter/lwprowlayout.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 0754e581b0d8569dd08cf26f88678754f249face
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Feb 1 12:04:26 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Feb 1 18:04:35 2020 +0100

    ofz#20456 Null-dereference READ
    
    this is the first honggfuzz (honggfuzz_asan_libreoffice) report I've seen 
to date
    
    Change-Id: Iac733aa63c7c94d9454b9c8596340dc2286393c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87803
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx 
b/lotuswordpro/source/filter/lwprowlayout.cxx
index de4e0b12789e..9760dd7a5e24 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -283,14 +283,15 @@ void LwpRowLayout::RegisterCurRowStyle(XFRow* 
pXFRow,sal_uInt16 nRowMark)
         {
             pRowStyle = static_cast<XFRowStyle*>(
                 
pXFStyleManager->FindStyle(pTableLayout->GetDefaultRowStyleName()));
-            fHeight += pRowStyle->GetRowHeight();
         }
         else
         {
             pRowStyle = static_cast<XFRowStyle*>(
                 pXFStyleManager->FindStyle(iter->second->GetStyleName()));
-            fHeight+=pRowStyle->GetRowHeight();
         }
+        if (!pRowStyle)
+            throw std::runtime_error("missing RowStyle");
+        fHeight += pRowStyle->GetRowHeight();
     }
 
     if (m_nDirection & 0x0030)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to