mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-11131 on low memory situations, return U_MEMORY_ALLOCATION_ERROR instead of crash
X-SVN-Rev: 36430
This commit is contained in:
parent
38c650b526
commit
9e20f6ebb2
1 changed files with 1 additions and 0 deletions
|
@ -1081,6 +1081,7 @@ SimpleDateFormat::initNumberFormatters(const Locale &locale,UErrorCode &status)
|
|||
}
|
||||
} else {
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
return; // exit with the allocation error
|
||||
}
|
||||
}
|
||||
umtx_unlock(&LOCK);
|
||||
|
|
Loading…
Add table
Reference in a new issue