ofz#3753 Integer-overflow

Change-Id: Icdcd42cc064e18686e6738b4195b6668c7d5d05e
Reviewed-on: https://gerrit.libreoffice.org/43748
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2017-10-24 10:55:07 +01:00
parent 89dd6ff111
commit 0b47baca10

View File

@@ -250,6 +250,9 @@ bool ImplReadDIBInfoHeader(SvStream& rIStm, DIBV5Header& rHeader, bool& bTopDown
return false;
}
if (rHeader.nHeight == SAL_MIN_INT32)
return false;
if ( rHeader.nHeight < 0 )
{
bTopDown = true;