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

coverity#1242879 Untrusted value as argument

Change-Id: Iedcd30fc27e9984407c6752577a3ecb35d7dc075
üst 159ea0e0
...@@ -3470,7 +3470,13 @@ void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p) ...@@ -3470,7 +3470,13 @@ void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p)
nSprmSiz = nSiz; nSprmSiz = nSiz;
} }
else else
{
pStrm->ReadUInt16( nSprmSiz ); pStrm->ReadUInt16( nSprmSiz );
}
sal_Size nRemaining = pStrm->remainingSize();
if (nSprmSiz > nRemaining)
nSprmSiz = nRemaining;
if( nSprmSiz > nArrMax ) if( nSprmSiz > nArrMax )
{ // does not fit { // does not fit
......
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