summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-18 15:19:32 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-07-18 14:25:25 +0000
commit90dc4409ef01b81dae0b3a8ba3ecfc027921a9fd (patch)
tree5b7de2c13b30799b332eaddcba4116174f263cbe /stoc
parent3881ea57892b78dcbc52d46a22616ac72bd4c335 (diff)
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 (cherry picked from commit b944e498a3053497394963b4e7bda2951ddcbcc1) Reviewed-on: https://gerrit.libreoffice.org/27287 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/invocation/invocation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 0d405d53ba45..e33a3071b848 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -996,7 +996,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;