diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-01-14 18:27:43 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-15 09:25:49 +0100 |
commit | e2a1d1c49117e3321a59daff35500394a7e60cda (patch) | |
tree | 1a6383f7d556ba90440e8d6195e2cf17e5a581a9 /cppu | |
parent | abcbababca2ff10bb78d36cf1a625b9d615eaa9a (diff) |
uno::Sequence: assert on negative length
Change-Id: Ie94a6042863bb0d91f2b61ac8a048182aea41c0a
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/inc/com/sun/star/uno/Sequence.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cppu/inc/com/sun/star/uno/Sequence.hxx b/cppu/inc/com/sun/star/uno/Sequence.hxx index 498109a0321c..3a006a654e5c 100644 --- a/cppu/inc/com/sun/star/uno/Sequence.hxx +++ b/cppu/inc/com/sun/star/uno/Sequence.hxx @@ -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 = |