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

ofz#6563 nBytesPerScan of 0

Change-Id: I00263d06fc06e1b4efb9938ea57d09fa5381adf8
Reviewed-on: https://gerrit.libreoffice.org/50350Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 34a5b1d6
......@@ -708,7 +708,7 @@ namespace emfio
Point aPoint( ReadYX() );
mpInputStream->ReadUInt16( nDontKnow ).ReadUInt16( nWidth ).ReadUInt16( nHeight ).ReadUInt16( nBytesPerScan ).ReadUChar( nPlanes ).ReadUChar( nBitCount );
bool bOk = nWidth && nHeight && nPlanes == 1 && nBitCount == 1;
bool bOk = nWidth && nHeight && nPlanes == 1 && nBitCount == 1 && nBytesPerScan != 0;
if (bOk)
{
bOk = nBytesPerScan <= mpInputStream->remainingSize() / nHeight;
......
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