diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-24 21:07:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-25 11:31:54 +0200 |
commit | 51d1724c3543381a61e505e671db6a0bb5ec92de (patch) | |
tree | 22f658c5f4bb46e9b934bb1d16c5357bef89ba1b /include/com | |
parent | ed67f7b57131a6c7d5d5ec34acb3955ccf091323 (diff) |
cid#1448292 coverity has difficulty with css::uno::Sequence
Change-Id: I227a88c566f981ace5e45d0e217a50abbc7f3023
Reviewed-on: https://gerrit.libreoffice.org/78072
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/com')
-rw-r--r-- | include/com/sun/star/uno/Sequence.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/com/sun/star/uno/Sequence.hxx b/include/com/sun/star/uno/Sequence.hxx index 83ddfb9d8101..c31e43141ca3 100644 --- a/include/com/sun/star/uno/Sequence.hxx +++ b/include/com/sun/star/uno/Sequence.hxx @@ -73,10 +73,20 @@ inline Sequence< E >::Sequence( { } +#if defined(__COVERITY__) +extern "C" void __coverity_tainted_data_sanitize__(void *); +#endif + template< class E > inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len ) { const Type & rType = ::cppu::getTypeFavourUnsigned( this ); + +#if defined(__COVERITY__) + // cid#1448292 coverity has difficulty with css::uno::Sequence + __coverity_tainted_data_sanitize__(pElements); +#endif + bool success = ::uno_type_sequence_construct( &_pSequence, rType.getTypeLibType(), |