summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-21 11:31:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-21 12:11:36 +0100
commit151a0cec2946b9b8db24d452875071b564d05193 (patch)
treec5f7fc45d443eb356ffaccb4f87762dcc4935144 /sw
parentd581ef6ee2d448ff30b77236006b6355f41f7449 (diff)
ofz#1202 fix oom
Change-Id: I9b7b318af112fb9226bf8d2b54ea2a306eee4251
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 4ce475c18952..49a2f46f227d 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3430,7 +3430,7 @@ void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p)
else
{
sal_uInt32 nPo = SVBT32ToUInt32( static_cast<sal_uInt8*>(pData)+2 );
- if (nPo == 0xFFFFFFFF)
+ if (nPo == 0xFFFFFFFF || !checkSeek(*pStrm, nPo))
{
p->nStartPos = p->nEndPos = WW8_CP_MAX; // Sepx empty
p->pMemPos = nullptr;
@@ -3438,8 +3438,6 @@ void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p)
}
else
{
- pStrm->Seek( nPo );
-
// read len
if (GetFIBVersion() <= ww::eWW2) // eWW6 ?, docs say yes, but...
{