Skip to content

Commit 0754e58

Browse files
author
Caolán McNamara
committed
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 <[email protected]>
1 parent 2d2e5d8 commit 0754e58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: lotuswordpro/source/filter/lwprowlayout.cxx

+3-2
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,15 @@ void LwpRowLayout::RegisterCurRowStyle(XFRow* pXFRow,sal_uInt16 nRowMark)
283283
{
284284
pRowStyle = static_cast<XFRowStyle*>(
285285
pXFStyleManager->FindStyle(pTableLayout->GetDefaultRowStyleName()));
286-
fHeight += pRowStyle->GetRowHeight();
287286
}
288287
else
289288
{
290289
pRowStyle = static_cast<XFRowStyle*>(
291290
pXFStyleManager->FindStyle(iter->second->GetStyleName()));
292-
fHeight+=pRowStyle->GetRowHeight();
293291
}
292+
if (!pRowStyle)
293+
throw std::runtime_error("missing RowStyle");
294+
fHeight += pRowStyle->GetRowHeight();
294295
}
295296

296297
if (m_nDirection & 0x0030)

0 commit comments

Comments
 (0)