summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-14 08:50:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-14 09:21:04 +0100
commite477175eee9ec206d409d0ebcc732100049d1aaa (patch)
tree7416567ceb9fb808929b58d19ba23f616592912c
parentc4d33c5f8f9fe55d5891c4fbbf8295b3aad8987f (diff)
coverity#704062 Unchecked return value
Change-Id: I6f9b9a2a4d5a6bf92428645df1226d9354f47210
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index a8bd5feabfb8..bbf74a0c7cc6 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3250,7 +3250,13 @@ void WW8PLCFx_Cp_FKP::GetSprms(WW8PLCFxDesc* p)
*/
WW8_CP nCpStart, nCpEnd;
void* pData=NULL;
- pPieceIter->Get(nCpStart, nCpEnd, pData);
+ bool bOk = pPieceIter->Get(nCpStart, nCpEnd, pData);
+
+ if (!bOk)
+ {
+ pPieceIter->SetIdx(nOldPos);
+ return;
+ }
WW8_FC nLimitFC = SVBT32ToUInt32( ((WW8_PCD*)pData)->fc );
WW8_FC nBeginLimitFC = nLimitFC;