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

ofz#6449 Integer-overflow

Change-Id: Ia144192a1374615c50fb3574f7a229926e43d7cb
Reviewed-on: https://gerrit.libreoffice.org/49951Tested-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 dc324bbf
......@@ -1363,7 +1363,7 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
}
if ( !nBitsPerSample || ( nBitsPerSample > 32 ) )
bStatus = false;
if (nImageWidth < 0 || nImageLength < 0)
if (nImageWidth <= 0 || nImageLength <= 0)
bStatus = false;
if ( bStatus )
{
......
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