diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-18 16:07:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-18 17:12:34 +0200 |
commit | ba73b1996e9797aa4f6884b95333759044416f0d (patch) | |
tree | 4fcf3aa1ab7259896f7997e5ac71c1d7ecc36359 /sw | |
parent | 227d9d3fe598c089aee4421f0ad503acb85f3c4c (diff) |
ofz#3404 avoid oom
Change-Id: Ie2594905616a80c0ef9478ae9152e08047d87842
Reviewed-on: https://gerrit.libreoffice.org/42424
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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()); |