[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Mon Jan 29 15:42:15 UTC 2018
sw/source/filter/ww8/ww8graf.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 665c64a884f01020ec64b0493a5d7ff8a2c239fc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jan 29 10:50:20 2018 +0000
ofz#3005 Timeout
Change-Id: I89e92f6782c47bec63d8f69c10e9539b0d7fd007
Reviewed-on: https://gerrit.libreoffice.org/48824
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/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 6551a41bd73c..767381499e96 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -1326,7 +1326,7 @@ SdrObject *SwWW8ImplReader::ReadGroup(WW8_DPHEAD const * pHd, SfxAllItemSet &rSe
SdrObject* pObj = new SdrObjGroup;
short nLeft = static_cast<sal_Int16>(SVBT16ToShort( pHd->cb )) - sizeof( WW8_DPHEAD );
- for (int i = 0; i < nGrouped; i++)
+ for (int i = 0; i < nGrouped && nLeft >= static_cast<short>(sizeof(WW8_DPHEAD)); ++i)
{
SfxAllItemSet aSet(m_pDrawModel->GetItemPool());
if (SdrObject *pObject = ReadGrafPrimitive(nLeft, aSet))
More information about the Libreoffice-commits
mailing list