Kaydet (Commit) c64944f6 authored tarafından Andre Fischer's avatar Andre Fischer

#i119502# Guard array access against invalid indices.

Patch by: SunYing
Review by: Andre
üst 95eb4f82
......@@ -2032,8 +2032,12 @@ sal_Int32 GetValueForEnhancedCustomShapeParameter( const com::sun::star::drawing
{
case com::sun::star::drawing::EnhancedCustomShapeParameterType::EQUATION :
{
nValue = (sal_uInt16)rEquationOrder[ nValue ];
nValue |= (sal_uInt32)0x80000000;
OSL_ASSERT(nValue < rEquationOrder.size());
if ( nValue < rEquationOrder.size() )
{
nValue = (sal_uInt16)rEquationOrder[ nValue ];
nValue |= (sal_uInt32)0x80000000;
}
}
break;
case com::sun::star::drawing::EnhancedCustomShapeParameterType::NORMAL :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment