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

check valid mnDstBitsPerPix before progressing

Change-Id: I77b8e882b537ab10b26fa021ef633c603bbd6562
üst ef4f097d
......@@ -105,6 +105,13 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
if ( !mbStatus )
return false;
if (mnDstBitsPerPix != 1 &&
mnDstBitsPerPix != 8 &&
mnDstBitsPerPix != 24)
{
return false;
}
bool bPalette(false);
BitmapPalette aPalette;
......
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