i18npool/source/nativenumber/nativenumbersupplier.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fcb78bb3704d5c2ff3456944d02e5b1d3fb4bd34
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sun Jun 18 14:48:04 2017 +0100

    coverity#1412874 silence Out-of-bounds read warning
    
    Change-Id: If51571f698ca11383b1b143281ede04bac111e2a

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);
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to