Kaydet (Commit) c88a23b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against corrupt ObjIndexData

Change-Id: I214991e5d34c8e335cdd8ea482f8fa4913ba637b
üst fc943ea8
......@@ -213,7 +213,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm)
vObjIndexs[k]->offset = pObjStrm->QuickReaduInt32();
for (k = 0; k < LeafCount; k++)
m_TempVec[k] = pObjStrm->QuickReaduInt32();
m_TempVec.at(k) = pObjStrm->QuickReaduInt32();
}
for( sal_uInt16 j=0; j<LeafCount; j++ )
......
......@@ -169,7 +169,7 @@ sal_uInt16 LwpObjectStream::QuickRead(void* buf, sal_uInt16 len)
memset(buf, 0, len);
if( len > m_nBufSize - m_nReadPos )
{
assert(false);
SAL_WARN("lwp", "read request longer than buffer");
len = m_nBufSize - m_nReadPos;
}
if( m_pContentBuf && len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment