uno::Sequence: assert on negative length

Change-Id: Ie94a6042863bb0d91f2b61ac8a048182aea41c0a
This commit is contained in:
Miklos Vajna
2013-01-14 18:27:43 +01:00
parent abcbababca
commit e2a1d1c491

View File

@@ -89,6 +89,7 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
template< class E >
inline Sequence< E >::Sequence( sal_Int32 len )
{
assert( len >= 0 );
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if ! defined EXCEPTIONS_OFF
sal_Bool success =