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.

Assignee

Jeff Genovy

Reporter

Jeff Genovy

Components

Labels

Reviewer

Shane Carr

Priority

medium

Time Needed

None

Fix versions

Configure