vcl/source/gdi/dibtools.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 0b47baca102e8407c98799f409809796667e5ba5
Author: Caolán McNamara <[email protected]>
Date: Tue Oct 24 10:55:07 2017 +0100
ofz#3753 Integer-overflow
Change-Id: Icdcd42cc064e18686e6738b4195b6668c7d5d05e
Reviewed-on: https://gerrit.libreoffice.org/43748
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 59c47beebd83..4a53e90950bc 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits