Improve memory management in the locale code (ICU 75)
General
Other Data
General
Other Data
Description
Follow-up to ticket ICU-21289: The memory management in the locale code has been cleaned up considerably, but there are still further improvements that could be done in these areas:
Fixed size buffers should never be used for anything that doesn't have a well-defined maximum length.
Reliance on NUL terminated strings should be reduced to where it's necessary and/or meaningful.
Follow-up to ticket ICU-21289: The memory management in the locale code has been cleaned up considerably, but there are still further improvements that could be done in these areas:
Fixed size buffers should never be used for anything that doesn't have a well-defined maximum length.
Reliance on NUL terminated strings should be reduced to where it's necessary and/or meaningful.
Unnecessary copying should be avoided.