summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-22 12:00:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-22 17:03:16 +0200
commit45dcb415e8d45a2bd20a6a2b524358799b3b5227 (patch)
tree244dceb75cb1905b7eb9f9038ca9849e019f4574
parentc32d54f244b0a18e0dcfcfceae140499e2dc3bbe (diff)
ofz#2902 eps timeout
Change-Id: I8001df3ac89b81bffab871404efc90b6606e3eb3 Reviewed-on: https://gerrit.libreoffice.org/42637 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--filter/source/graphicfilter/ieps/ieps.cxx2
1 files changed, 1 insertions, 1 deletions
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() ) );