uno::Sequence: assert on negative length
Change-Id: Ie94a6042863bb0d91f2b61ac8a048182aea41c0a
This commit is contained in:
@@ -89,6 +89,7 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
|
|||||||
template< class E >
|
template< class E >
|
||||||
inline Sequence< E >::Sequence( sal_Int32 len )
|
inline Sequence< E >::Sequence( sal_Int32 len )
|
||||||
{
|
{
|
||||||
|
assert( len >= 0 );
|
||||||
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
|
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
|
||||||
#if ! defined EXCEPTIONS_OFF
|
#if ! defined EXCEPTIONS_OFF
|
||||||
sal_Bool success =
|
sal_Bool success =
|
||||||
|
Reference in New Issue
Block a user