[Libreoffice-commits] .: cppu/inc

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 15 00:26:05 PST 2013


 cppu/inc/com/sun/star/uno/Sequence.hxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e2a1d1c49117e3321a59daff35500394a7e60cda
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Mon Jan 14 18:27:43 2013 +0100

    uno::Sequence: assert on negative length
    
    Change-Id: Ie94a6042863bb0d91f2b61ac8a048182aea41c0a

diff --git a/cppu/inc/com/sun/star/uno/Sequence.hxx b/cppu/inc/com/sun/star/uno/Sequence.hxx
index 498109a0..3a006a6 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 =


More information about the Libreoffice-commits mailing list