summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-18 14:48:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-18 14:48:04 +0100
commitfcb78bb3704d5c2ff3456944d02e5b1d3fb4bd34 (patch)
tree72ffc314a19484794706751dd95c3c79eacdfae3 /i18npool
parent876c035dc448314eb6a44cf4692b90188478f797 (diff)
coverity#1412874 silence Out-of-bounds read warning
Change-Id: If51571f698ca11383b1b143281ede04bac111e2a
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 492b8da5e421..c99a5d1e1398 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -866,6 +866,7 @@ void makeHebrewNumber(sal_Int64 value, OUStringBuffer& output, bool isLast, bool
// By convention, the numbers 15 and 16 are represented as 9 + 6 and 9 + 7
if (num == 15 || num == 16) // substitution for 15 and 16
j++;
+ assert(j < sal_Int32(SAL_N_ELEMENTS(HebrewNumberCharArray)));
num = sal::static_int_cast<sal_Int16>( num - HebrewNumberCharArray[j].value );
output.append(HebrewNumberCharArray[j].code);
}