summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-05-11 01:29:47 +0200
committerEike Rathke <erack@redhat.com>2013-05-11 01:56:36 +0200
commitf9bb8a6da4434fc521b26214aeec349504c3a82b (patch)
treebd5d1fc618ed657eaceb61bc410d535695e2d3ad /l10ntools
parentad644f4cd82c36e2db530897df98dc24fe1cdb2d (diff)
fixed transex3 out of bounds access to vMergeEntryVector
transex3 crashed if a new language was added to the StringArray PairedList in svtools/source/misc/langtab.src and that resource was attempted to be built. For the new entry doesn't exist a MergeEntrys entry in vMergeEntryVector yet, but ExportList::GetSourceLanguageListEntryCount() already includes it so nMaxList is greater than size of vMergeEntryVector. Check nLIndex first. Change-Id: I3b706bea7aea7cd7ecd8245d99587b944510952d
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index f817e21974ea..5d285ad1b370 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -1476,7 +1476,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
}
}
- if( bTranslateList )
+ if( bTranslateList && nLIndex < vMergeEntryVector.size() )
{
OString sText;
sal_Bool bText;