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

coverity#1241051 Negative array index read

Change-Id: I958267c88f74523a5aaba0ff6c677aadd2e84dd9
üst 8d01d16c
...@@ -687,8 +687,11 @@ NativeNumberXmlAttributes SAL_CALL NativeNumberSupplierService::convertToXmlAttr ...@@ -687,8 +687,11 @@ NativeNumberXmlAttributes SAL_CALL NativeNumberSupplierService::convertToXmlAttr
sal_Int16 number = NumberChar_HalfWidth, type = attShort; sal_Int16 number = NumberChar_HalfWidth, type = attShort;
sal_Int16 langnum = -1;
if (isValidNatNum(rLocale, nNativeNumberMode)) { if (isValidNatNum(rLocale, nNativeNumberMode)) {
sal_Int16 langnum = getLanguageNumber(rLocale); langnum = getLanguageNumber(rLocale);
}
if (langnum != -1) {
switch (nNativeNumberMode) { switch (nNativeNumberMode) {
case NativeNumberMode::NATNUM0: // Ascii case NativeNumberMode::NATNUM0: // Ascii
number = NumberChar_HalfWidth; number = NumberChar_HalfWidth;
......
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