mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 15:10:32 +00:00
安全规范问题
Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
parent
5ac055aad7
commit
a5cc76aa46
@ -571,7 +571,8 @@ bool NumberFormat::ReadISO4217Ddatas()
|
||||
UChar code[4]; // 3 letters + 1 NUL
|
||||
int32_t length = (int32_t)uprv_strlen(currentCurrency);
|
||||
u_charsToUChars(currentCurrency, code, length + 1); // +1 includes the NUL
|
||||
int32_t numCode = ucurr_getNumericCode(code);
|
||||
const UChar* currencyCode = code;
|
||||
int32_t numCode = ucurr_getNumericCode(currencyCode);
|
||||
if (numCode == 0) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user