From 0fad728f04a8496a8860ddf976885c5e24f62835 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 19 Jun 2014 14:21:25 -0400 Subject: Fix illegal memory access. Change-Id: I884bc109119212d9a89b761813043c5458b8046d --- xmloff/source/core/xmlexp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index f61ed6ceac2a..5e6571319d18 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -801,7 +801,6 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue try { const sal_Int32 nPropCount = aDescriptor.getLength(); - const beans::PropertyValue* pProps = aDescriptor.getConstArray(); const sal_uInt32 nTest = EXPORT_META|EXPORT_STYLES|EXPORT_CONTENT|EXPORT_SETTINGS; @@ -810,6 +809,7 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue // evaluate descriptor only for flat files and if a base URI // has not been provided already + const beans::PropertyValue* pProps = aDescriptor.getConstArray(); for( sal_Int32 nIndex = 0; nIndex < nPropCount; nIndex++, pProps++ ) { const OUString& rPropName = pProps->Name; @@ -828,6 +828,7 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue } } + const beans::PropertyValue* pProps = aDescriptor.getConstArray(); for (sal_Int32 nIndex = 0; nIndex < nPropCount; ++nIndex, ++pProps) { const OUString& rPropName = pProps->Name; -- cgit v1.2.1