diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-18 14:48:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-18 14:48:04 +0100 |
commit | fcb78bb3704d5c2ff3456944d02e5b1d3fb4bd34 (patch) | |
tree | 72ffc314a19484794706751dd95c3c79eacdfae3 /i18npool/source | |
parent | 876c035dc448314eb6a44cf4692b90188478f797 (diff) |
coverity#1412874 silence Out-of-bounds read warning
Change-Id: If51571f698ca11383b1b143281ede04bac111e2a
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/nativenumber/nativenumbersupplier.cxx | 1 |
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); } |