diff options
-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(), |