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

Caolán McNamara caolanm at redhat.com
Fri Sep 22 15:03:44 UTC 2017


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

New commits:
commit 45dcb415e8d45a2bd20a6a2b524358799b3b5227
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 22 12:00:10 2017 +0100

    ofz#2902 eps timeout
    
    Change-Id: I8001df3ac89b81bffab871404efc90b6606e3eb3
    Reviewed-on: https://gerrit.libreoffice.org/42637
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx
index d752a836ee3c..d7331e73c364 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -648,7 +648,7 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
                     long nBitDepth = ImplGetNumber(pDest, nSecurityCount);
                     long nScanLines = ImplGetNumber(pDest, nSecurityCount);
                     pDest = ImplSearchEntry(pDest, reinterpret_cast<sal_uInt8 const *>("%"), nSecurityCount, 1);       // go to the first Scanline
-                    if (pDest && nWidth && nHeight && ( ( nBitDepth == 1 ) || ( nBitDepth == 8 ) ) && nScanLines)
+                    if (pDest && nWidth > 0 && nHeight > 0 && ( ( nBitDepth == 1 ) || ( nBitDepth == 8 ) ) && nScanLines)
                     {
                         rStream.Seek( nBufStartPos + ( pDest - pBuf.get() ) );
 


More information about the Libreoffice-commits mailing list