From b944e498a3053497394963b4e7bda2951ddcbcc1 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 18 Jul 2016 15:19:32 +0200 Subject: don't write past the end of the array Found through http://crashreport.libreoffice.org/stats/crash_details/6ba2edbd-d268-4074-8b87-590a5694cc26 Change-Id: Ic95d472fd117c2d286fabb775ef49e287a2874fa --- stoc/source/invocation/invocation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stoc') diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index eee3da6905c7..207797a61d4b 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -992,7 +992,7 @@ Sequence< Type > SAL_CALL Invocation_Impl::getTypes() throw( RuntimeException, s static Sequence< Type > const * s_pTypes = nullptr; if (! s_pTypes) { - Sequence< Type > types( 4 +8 ); + Sequence< Type > types( 4 + 10 ); Type * pTypes = types.getArray(); sal_Int32 n = 0; -- cgit