We're updating the issue view to help you get more done. 

ICU4C: CurrencyPluralInfo class doesn't handle OOM errors

Description

Not all code paths that result in memory allocation are check in the class CurrencyPluralInfo, meaning that OOM errors can occur and the caller wouldn't know.

Worse, this can lead to crashes in some cases due to null pointers being set, with no error returned. (From some internal crash dumps).

The clone and assignment operator (operator=) methods of construction don't take an error code parameter, meaning that if an OOM error occurs during the constructor, it will not reported back to the caller, and the caller has no way to know that the object is in a half-constructed state.

Environment

Status

Assignee

Jeff Genovy

Reporter

Jeff Genovy

Labels

Reviewer

Shane Carr

Components

Fix versions

Priority

medium