diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 15:54:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 15:54:50 +0100 |
commit | f291c96da103e279e04bcea7b578badf0e9cdfa0 (patch) | |
tree | 891243dfacd39dcb9067bd159fbe7ba58b5c6bc4 | |
parent | ffcc9e80d81ebd3e3618f262a2dbc51da4e59a43 (diff) |
check if seek succeeds
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index d8b72decf..b65fa1a26 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -3220,7 +3220,9 @@ void DffRecordManager::Consume( SvStream& rIn, sal_Bool bAppend, sal_uInt32 nStO if ( pCList->nCount == DFF_RECORD_MANAGER_BUF_SIZE ) pCList = new DffRecordList( pCList ); rIn >> pCList->mHd[ pCList->nCount ]; - pCList->mHd[ pCList->nCount++ ].SeekToEndOfRecord( rIn ); + bool bSeekSucceeded = pCList->mHd[ pCList->nCount++ ].SeekToEndOfRecord(rIn); + if (!bSeekSucceeded) + break; } rIn.Seek( nOldPos ); } |