[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Fri Oct 27 15:18:33 UTC 2017
filter/source/graphicfilter/ieps/ieps.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ac31598662c280ef99f305f6ca8ddc0be96ede06
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 27 13:34:46 2017 +0100
ofz#3837 Integer-overflow
Change-Id: Iaf9573ba7a8c08ba8c1b8dcf62340d0ea213e1a9
Reviewed-on: https://gerrit.libreoffice.org/43944
Tested-by: Jenkins <ci at libreoffice.org>
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 4d6001cd9538..6d5c41cba7d8 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -766,7 +766,7 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
bFail = o3tl::checked_sub(nNumb[2], nNumb[0], nWidth) || o3tl::checked_add(nWidth, 1L, nWidth);
if (!bFail)
bFail = o3tl::checked_sub(nNumb[3], nNumb[1], nHeight) || o3tl::checked_add(nWidth, 1L, nHeight);
- if (!bFail)
+ if (!bFail && nWidth > 0 && nHeight > 0)
{
GDIMetaFile aMtf;
More information about the Libreoffice-commits
mailing list