Kaydet (Commit) fcb78bb3 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1412874 silence Out-of-bounds read warning

Change-Id: If51571f698ca11383b1b143281ede04bac111e2a
üst 876c035d
...@@ -866,6 +866,7 @@ void makeHebrewNumber(sal_Int64 value, OUStringBuffer& output, bool isLast, bool ...@@ -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 // 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 if (num == 15 || num == 16) // substitution for 15 and 16
j++; j++;
assert(j < sal_Int32(SAL_N_ELEMENTS(HebrewNumberCharArray)));
num = sal::static_int_cast<sal_Int16>( num - HebrewNumberCharArray[j].value ); num = sal::static_int_cast<sal_Int16>( num - HebrewNumberCharArray[j].value );
output.append(HebrewNumberCharArray[j].code); output.append(HebrewNumberCharArray[j].code);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment