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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 8 13:21:08 UTC 2018


 filter/source/graphicfilter/ipict/ipict.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e8b61d3ab6919aaae0faf2d4db43e3ec0348350
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Nov 8 10:09:36 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Nov 8 14:19:04 2018 +0100

    coverity#1441102 silence Copy-paste error
    
    Change-Id: I389984fa56a8709416f9d525e4a879993b432bea
    Reviewed-on: https://gerrit.libreoffice.org/63077
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx
index 01e6fe296685..48e534b83132 100644
--- a/filter/source/graphicfilter/ipict/ipict.cxx
+++ b/filter/source/graphicfilter/ipict/ipict.cxx
@@ -923,7 +923,7 @@ sal_uLong PictReader::ReadPixMapEtc( BitmapEx &rBitmap, bool bBaseAddr, bool bCo
 
         if (nRowBytes < 8 || nPackType == 1)
         {
-            if (nHeight > pPict->remainingSize() / (sizeof(sal_uInt16) * nWidth))
+            if (nHeight > pPict->remainingSize() / (sizeof(sal_uInt8) * nRowBytes))
                 return 0xffffffff;
         }
         else


More information about the Libreoffice-commits mailing list