From 6dfc659c5e468ad969291ad39085b9c3ec53bcac Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 18 Jul 2019 11:55:08 +0100 Subject: cid#1448264 silence Out-of-bounds access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I12267e8709d8f36acbbd6c70bfdb80a2a500e5d3 Reviewed-on: https://gerrit.libreoffice.org/75910 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmloff/source/chart/ColorPropertySet.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmloff') diff --git a/xmloff/source/chart/ColorPropertySet.cxx b/xmloff/source/chart/ColorPropertySet.cxx index 10f62e9aa81d..388e33d60e01 100644 --- a/xmloff/source/chart/ColorPropertySet.cxx +++ b/xmloff/source/chart/ColorPropertySet.cxx @@ -137,7 +137,8 @@ PropertyState SAL_CALL ColorPropertySet::getPropertyState( const OUString& /* Pr Sequence< PropertyState > SAL_CALL ColorPropertySet::getPropertyStates( const Sequence< OUString >& /* aPropertyName */ ) { PropertyState aState = PropertyState_DIRECT_VALUE; - return Sequence< PropertyState >( & aState, 1 ); + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence + return Sequence(&aState, 1); } void SAL_CALL ColorPropertySet::setPropertyToDefault( const OUString& PropertyName ) -- cgit