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

check nTargetBits size

Change-Id: I5cc7499cfdee58ffa480bb31dfc262d5b781180d
üst 2c5db736
......@@ -627,7 +627,9 @@ void CCIDecompressor::StartDecompression( SvStream & rIStream )
bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTargetBits, bool bLastLine )
{
bool b2D;
//Read[1|2]DScanlineData take a sal_uInt16, so its either limit here or expand there
if (nTargetBits > SAL_MAX_UINT16)
return false;
if ( nEOLCount >= 5 ) // RTC (Return To Controller)
return true;
......@@ -682,6 +684,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget
if ( nOptions & CCI_OPTION_BYTEALIGNROW )
nInputBitsBufSize &= 0xfff8;
bool b2D;
// is it a 2D row?
if ( nOptions & CCI_OPTION_2D )
{
......
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