[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Wed Oct 25 07:57:23 UTC 2017


 vcl/source/gdi/dibtools.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 0b47baca102e8407c98799f409809796667e5ba5
Author: Caolán McNamara <caolanm at redhat.com>
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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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;


More information about the Libreoffice-commits mailing list