[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Wed Feb 7 20:50:06 UTC 2018
lotuswordpro/source/filter/lwptablelayout.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit d9bb43a31df7d92118713a7f7d09879285a991ac
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Feb 7 13:03:32 2018 +0000
ofz#6088 Null-dereference
Change-Id: I5854e27b4322f4e9b3dd8c976d619e98cc0ee3cc
Reviewed-on: https://gerrit.libreoffice.org/49351
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 0a3078cf697a..924da8b7ab08 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -547,6 +547,9 @@ void LwpTableLayout::RegisterColumns()
m_aColumns[i] = nullptr;
}
+ if (!pTable)
+ throw std::range_error("corrupt LwpTableLayout");
+
double dDefaultColumn = pTable->GetWidth();
sal_uInt16 nJustifiableColumn = nCols;
More information about the Libreoffice-commits
mailing list