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

coverity#1266484 rework to scrutinze mnLen

Change-Id: I8fb6d555a7f7afe02b4c0297d3fe4e456ba41dd0
üst bbc17bc8
......@@ -1289,7 +1289,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
sal_Int32 nAryLen(0);
rIStm.ReadInt32(nAryLen);
if ( mnIndex + mnLen > maStr.getLength() )
if (mnLen > maStr.getLength() - mnIndex)
{
mnIndex = 0;
mpDXAry = 0;
......
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