OOM not handled in uloc_openKeywordList

Description

The return value of uprv_malloc isn't checked in uloc_openKeywordList, leading to a segmentation fault/crash if OOM occurs.

 

Link to source on GitHub:
https://github.com/unicode-org/icu/blob/master/icu4c/source/common/uloc.cpp#L1479

 

Sample output from running cintltst under Valgrind with some hand-rolled OOM simulation for the ICU tests:

 

Assignee

Jeff Genovy

Reporter

Jeff Genovy

Components

Labels

Reviewer

Daniel Ju

Priority

medium

Time Needed

Minutes

Fix versions

Configure