filter/source/graphicfilter/ios2met/ios2met.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit a7a1fe1ce77677d069e289b0552860b342f1a505
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Apr 11 08:54:29 2018 +0100

    coverity#1434185 Operands don't affect result
    
    Revert "ofz#7366 Integer overflow"
    
    This reverts commit 1f28de7e26cb9b12d74b743333dab72e08f53bec.
    
    Change-Id: I0117a29924d9f549ae19c5d802c83a2ee406b2a6
    Reviewed-on: https://gerrit.libreoffice.org/52710
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 9b0a772ee1c0..1c1a077355e5 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -2037,16 +2037,10 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, 
sal_uInt16 nOrderLen)
             sal_uInt16 nLen=nOrderLen;
             auto nWidth = ReadCoord(bCoord32);
             auto nHeight = ReadCoord(bCoord32);
-            if (nWidth < 0 || nHeight < 0 ||
-                nWidth > std::numeric_limits<decltype(nWidth)>::max() ||
-                nHeight > std::numeric_limits<decltype(nHeight)>::max())
-            {
+            if (nWidth < 0 || nHeight < 0)
                 aAttr.aChrCellSize = aDefAttr.aChrCellSize;
-            }
             else
-            {
                 aAttr.aChrCellSize = Size(nWidth, nHeight);
-            }
             if (bCoord32) nLen-=8; else nLen-=4;
             if (nLen>=4) {
                 pOS2MET->SeekRel(4); nLen-=4;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to