embeddedobj/source/msole/ownview.cxx | 1 + filter/source/msfilter/mscodec.cxx | 1 + sd/source/filter/eppt/eppt.cxx | 1 + sw/source/filter/ww8/docxattributeoutput.cxx | 4 ++++ testtools/source/bridgetest/bridgetest.cxx | 1 + 5 files changed, 8 insertions(+)
New commits: commit 9871789e0f9256ac27ea7bc4590ba910d6e4c373 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Nov 11 21:08:58 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Nov 12 09:36:29 2021 +0100 coverity: annotate with markup so they will stay silenced Change-Id: I8ac0ae4cd64d8171eebd98d89d1fe954280987b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125072 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx index ed794a74e07a..4aaf35499124 100644 --- a/embeddedobj/source/msole/ownview.cxx +++ b/embeddedobj/source/msole/ownview.cxx @@ -412,6 +412,7 @@ void OwnView_Impl::CreateNative() { sal_uInt8 const aClassID[] = { 0x00, 0x03, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 }; + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence uno::Sequence< sal_Int8 > aPackageClassID( reinterpret_cast<sal_Int8 const *>(aClassID), 16 ); uno::Reference< io::XStream > xSubStream; diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx index b59b7dc73ad9..7aad72ba2dc7 100644 --- a/filter/source/msfilter/mscodec.cxx +++ b/filter/source/msfilter/mscodec.cxx @@ -185,6 +185,7 @@ bool MSCodec_Xor95::InitCodec( const uno::Sequence< beans::NamedValue >& aData ) uno::Sequence< beans::NamedValue > MSCodec_Xor95::GetEncryptionData() { ::comphelper::SequenceAsHashMap aHashData; + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence aHashData[ OUString( "XOR95EncryptionKey" ) ] <<= uno::Sequence<sal_Int8>( reinterpret_cast<sal_Int8*>(mpnKey), 16 ); aHashData[ OUString( "XOR95BaseKey" ) ] <<= static_cast<sal_Int16>(mnKey); aHashData[ OUString( "XOR95PasswordHash" ) ] <<= static_cast<sal_Int16>(mnHash); diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx index 423a90f3a65a..117c39d34453 100644 --- a/sd/source/filter/eppt/eppt.cxx +++ b/sd/source/filter/eppt/eppt.cxx @@ -506,6 +506,7 @@ void PPTWriter::ImplCreateDocumentSummaryInformation() 'A',0,'1',0,'E',0,'F',0,'-',0,'0',0,'0',0,'6',0,'0',0,'9',0, '7',0,'D',0,'A',0,'5',0,'6',0,'8',0,'9',0,'}',0 }; + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence uno::Sequence<sal_Int8> aGuidSeq(aGuid, 0x52); SvMemoryStream aHyperBlob; diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index b2b7a047b0f2..de61bb748814 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1140,6 +1140,7 @@ void DocxAttributeOutput::InitCollectedParagraphProperties() // postpone the output so that we can later [in EndParagraphProperties()] // prepend the properties before the run + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence m_pSerializer->mark(Tag_InitCollectedParagraphProperties, comphelper::containerToSequence(aOrder)); } @@ -2538,6 +2539,7 @@ void DocxAttributeOutput::InitCollectedRunProperties() // postpone the output so that we can later [in EndParagraphProperties()] // prepend the properties before the run + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence m_pSerializer->mark(Tag_InitCollectedRunProperties, comphelper::containerToSequence(aOrder)); } @@ -3930,6 +3932,7 @@ void DocxAttributeOutput::TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t // postpone the output so that we can later [] // prepend the properties before the run + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence m_pSerializer->mark(Tag_TableDefinition, comphelper::containerToSequence(aOrder)); tools::Long nPageSize = 0; @@ -6848,6 +6851,7 @@ void DocxAttributeOutput::StartSection() // postpone the output so that we can later [in EndParagraphProperties()] // prepend the properties before the run + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence m_pSerializer->mark(Tag_StartSection, comphelper::containerToSequence(aOrder)); m_bHadSectPr = true; } diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 5860708695d2..7c646b59a257 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -774,6 +774,7 @@ static bool performTest( for (int j = 0; j != 3; ++j) { Sequence< sal_Int32 > _arSeqLong[3]; for (int i = 0; i != 3; ++i) { + // coverity[overrun-buffer-arg : FALSE] - coverity has difficulty with css::uno::Sequence _arSeqLong[i] = Sequence< sal_Int32 >(_arLong, 3); } _arSeqLong2[j] = Sequence< Sequence< sal_Int32 > >(