[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Sun Mar 19 10:24:16 UTC 2017
filter/source/msfilter/msdffimp.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cd3e18c2cfca66d2efdc7662bae38ce72a2f8d40
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Mar 19 10:22:03 2017 +0000
ofz#907 divide by zero
Change-Id: I663761239efe195b2051cf4410eca2a3362e5de8
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index e32a7cc48600..8d740fe83aba 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2404,7 +2404,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
rIn.ReadUInt16( nNumElemVert ).ReadUInt16( nNumElemMemVert ).ReadUInt16( nElemSizeVert );
bool bImport = false;
- if (nNumElemVert)
+ if (nNumElemVert && nElemSizeVert)
{
//sanity check that the stream is long enough to fulfill nNumElemVert * nElemSizeVert;
bImport = rIn.remainingSize() / nElemSizeVert >= nNumElemVert;
More information about the Libreoffice-commits
mailing list