Author: steve_y
Date: Wed Apr 16 07:48:58 2014
New Revision: 1587823

URL: http://svn.apache.org/r1587823
Log:
Issue 124661 - crash when loading and re-saving attached ppt file with a single 
customshape

Modified:
    openoffice/trunk/main/filter/source/msfilter/escherex.cxx

Modified: openoffice/trunk/main/filter/source/msfilter/escherex.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/filter/source/msfilter/escherex.cxx?rev=1587823&r1=1587822&r2=1587823&view=diff
==============================================================================
--- openoffice/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ openoffice/trunk/main/filter/source/msfilter/escherex.cxx Wed Apr 16 
07:48:58 2014
@@ -2558,7 +2558,7 @@ void ConvertEnhancedCustomShapeEquation(
                if ( pAny )
                        *pAny >>= sEquationSource;
                sal_Int32 nEquationSourceCount = sEquationSource.getLength();
-               if ( nEquationSourceCount )
+               if ( nEquationSourceCount && (nEquationSourceCount <= 128) )
                {
                        sal_Int32 i;
                        for ( i = 0; i < nEquationSourceCount; i++ )


Reply via email to