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

check np bounds again

Change-Id: I0fb61954b2eaf0c015d7bdefe9f03bd459b31501
üst 3b0aae37
......@@ -640,6 +640,8 @@ bool TIFFReader::ReadMap()
pTIFF->Seek(pStripOffsets[nStrip]);
aLZWDecom.StartDecompression(*pTIFF);
}
if (np >= SAL_N_ELEMENTS(pMap))
return false;
if ( ( aLZWDecom.Decompress( pMap[ np ], nBytesPerRow ) != nBytesPerRow ) || pTIFF->GetError() )
return false;
}
......
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