[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Mon Sep 18 15:13:09 UTC 2017


 sw/source/filter/ww8/ww8par.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ba73b1996e9797aa4f6884b95333759044416f0d
Author: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at 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());
 


More information about the Libreoffice-commits mailing list