Andy Heninger
f7b36d39bc
ICU-11908 NumberingSystem, fix the memory management of static cache of numsys names.
...
Add thread safe cache initialization.
2019-03-08 15:06:53 -08:00
Jeff Genovy
d07396f94d
ICU-20041 Improve handling of OOM failures in NumberingSystem class. ( #19 )
...
ICU-20041 ICU4C NumberingSystem class doesn't handle out-of-memory (OOM) failures.
- Not all code paths in the NumberingSystem class check for OOM failures. This can lead to crashes in some cases as null pointers will be dereferenced without any checks.
- Change to use nullptr instead of NULL.
- Don't stomp on OOM errors when attempting to load resources. We should report back OOM to the caller.
- Use LocalPointer in order simplify the code and for automatic clean-up of memory.
- Use LocalUResourceBundlePointer as well to help simply things even more.
2018-09-27 14:27:37 -07:00
Shane Carr
5c711e36e8
ICU-13327 Fixing buffer overflow in NumberingSystem constructor.
...
X-SVN-Rev: 40494
2017-09-28 01:00:43 +00:00
Andy Heninger
242e02c388
ICU-12764 icu4c utf-8 source files, update Copyright notices.
...
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Steven R. Loomis
68401040eb
ICU-12852 Remove some unnecessary copy (merge from bug)
...
X-SVN-Rev: 39542
2016-12-14 18:41:04 +00:00
Michael Ow
61607c2773
ICU-12564 Update copyright notice in trunk
...
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126
ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
...
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f
ICU-12564 Update copyright notice in ICU4C
...
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Markus Scherer
5faab922bd
ICU-11709 do not clobber existing UErrorCode failure code, do not orphan() names until you know that the Enumeration was allocated and thus did adopt
...
X-SVN-Rev: 37956
2015-09-15 18:03:08 +00:00
Peter Edberg
4f8296e079
ICU-11709 Fix leak in NumberingSystem::getAvailableNames; rename variables to avoid confusion
...
X-SVN-Rev: 37944
2015-09-10 22:49:03 +00:00
John Emmons
01e0c332a5
ICU-11846 CLDR 28 data integration
...
X-SVN-Rev: 37836
2015-08-27 20:23:27 +00:00
Peter Edberg
30feb0c56b
ICU-10039 Per API review: Add consts, add unumsys_getDescription(), improve documentation
...
X-SVN-Rev: 34283
2013-09-12 04:33:03 +00:00
John Emmons
7b449d6fe9
ICU-8849 Updates to NumberingSystem class to support otherNumberingSystems from CLDR
...
X-SVN-Rev: 31400
2012-02-15 22:01:43 +00:00
Andy Heninger
5b3a708915
ICU-8992 Compiler Warning cleanup for gcc 4.6.1
...
X-SVN-Rev: 31329
2012-02-06 19:57:08 +00:00
Markus Scherer
1fd9d55a23
ICU-8868 remove use of UnicodeString conversion constructor from numsys.cpp
...
X-SVN-Rev: 30785
2011-10-04 01:14:37 +00:00
Michael Ow
8ccd432155
ICU-8718 Fix some memory leak issues in numbering systems
...
X-SVN-Rev: 30592
2011-08-30 03:22:38 +00:00
John Emmons
c651458559
ICU-8656 Implement NumberingSystem::getAvailableNames()
...
X-SVN-Rev: 30476
2011-08-08 16:03:37 +00:00
Markus Scherer
2201fb816c
ICU-7877 optionally explicit UnicodeString constructors, and make them explicit inside ICU
...
X-SVN-Rev: 30293
2011-07-07 18:46:19 +00:00
John Emmons
1974269a6f
ICU-7724 Merge support for non-contiguous numbering systems
...
X-SVN-Rev: 28466
2010-08-13 21:23:00 +00:00
Andy Heninger
74e297291f
ICU-7780 fix various compiler warnings
...
X-SVN-Rev: 28301
2010-07-12 18:03:29 +00:00
John Emmons
f3fddb37d8
ICU-7751 Fix error handling in NumberingSystem::createInstance()
...
X-SVN-Rev: 28280
2010-07-01 21:41:48 +00:00
John Emmons
bd2a89a232
ICU-7599 Add support for alternate symbols per numbering system
...
X-SVN-Rev: 28134
2010-06-04 18:29:02 +00:00
Claire Ho
814e84d04f
ICU-7217 Add a U_FAILURE check in NumberingSystem::createInstance()
...
X-SVN-Rev: 27887
2010-03-31 00:06:58 +00:00
Markus Scherer
1dbea6f001
ICU-7245 implement C++ public smart pointers; LocalPointer, LocalArray, LocalUConverterPointer etc.
...
X-SVN-Rev: 26904
2009-11-14 00:36:06 +00:00
Andy Heninger
cf141fb997
ICU-6926 Fix svn properties and text file line endings
...
X-SVN-Rev: 26112
2009-06-16 05:56:50 +00:00
Andy Heninger
3587c5f037
ICU-6799 Compiler warnings fix
...
X-SVN-Rev: 25720
2009-04-02 06:27:39 +00:00
John Emmons
c6efa90f2d
ICU-6694 Fix resource bundle loading in numbering systems
...
X-SVN-Rev: 25308
2009-01-23 22:51:46 +00:00
John Emmons
07e008ff60
ICU-6694 Fix resource bundle not getting closed error in numbering systems
...
X-SVN-Rev: 25305
2009-01-23 17:48:27 +00:00
John Emmons
6070262c2f
ICU-6694 Implementation of numbering systems and the @numbers keyword
...
X-SVN-Rev: 25285
2009-01-22 04:46:35 +00:00