Skip to content

Commit

Permalink
ofz#20456 Null-dereference READ
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Caolán McNamara committed Feb 1, 2020
1 parent 2d2e5d8 commit 0754e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lotuswordpro/source/filter/lwprowlayout.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0754e58

Please sign in to comment.