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

ICU4C: NumberingSystem class doesn't handle OOM failures

Description

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.

For example, from the createInstance function, the new can fail leading to a crash on the next line.

1 2 3 4 5 6 7 8 9 ... NumberingSystem *ns = new NumberingSystem(); ns->setRadix(radix_in); ns->setDesc(desc_in); ns->setAlgorithmic(isAlgorithmic_in); ns->setName(NULL); return ns; }

Status

Assignee

Jeff Genovy

Reporter

Jeff Genovy

Labels

Reviewer

Andy Heninger

Time Needed

None

Start date

None

Components

Fix versions

Priority

medium