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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user