sw/source/filter/ww8/ww8par.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit ba73b1996e9797aa4f6884b95333759044416f0d Author: Caolán McNamara <caol...@redhat.com> Date: Mon Sep 18 16:07:41 2017 +0100 ofz#3404 avoid oom Change-Id: Ie2594905616a80c0ef9478ae9152e08047d87842 Reviewed-on: https://gerrit.libreoffice.org/42424 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index a68b9a640dd6..1de95d3a4067 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -4656,7 +4656,9 @@ void SwWW8ImplReader::StoreMacroCmds() { if (m_xWwFib->m_lcbCmds) { - m_pTableStream->Seek(m_xWwFib->m_fcCmds); + bool bValidPos = checkSeek(*m_pTableStream, m_xWwFib->m_fcCmds); + if (!bValidPos) + return; uno::Reference < embed::XStorage > xRoot(m_pDocShell->GetStorage());
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits