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

coverity#1242624 Untrusted loop bound

Change-Id: I277e98156c9a9832d1f5e968e590356d14b91af6
üst db4414db
......@@ -2203,6 +2203,12 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
sal_uInt16 nElemSizeSeg = 2;
rIn.ReadUInt16( nNumElemSeg ).ReadUInt16( nNumElemMemSeg ).ReadUInt16( nElemSizeSeg );
}
sal_Size nMaxEntriesPossible = rIn.remainingSize() / sizeof(sal_uInt16);
if (nNumElemSeg > nMaxEntriesPossible)
{
SAL_WARN("filter.ms", "NumElem list is longer than remaining bytes, ppt or parser is wrong");
nNumElemSeg = nMaxEntriesPossible;
}
if ( nNumElemSeg )
{
sal_Int16 nCommand;
......
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