]> granicus.if.org Git - icu/commit
ICU-20034 ICU4C Locale assignment operator should set the locale to bogus if OOM...
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 2 Aug 2018 05:44:39 +0000 (22:44 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:37 +0000 (14:27 -0700)
commitcbaf075ac1b154a11607fb5ffda025015df2ee7e
treee7d27bada33ba58c08d67adf1a7c63c1cbe6e8d7
parentfe9db30ca6dc5c130e3b9b8941fbc7327f172900
ICU-20034 ICU4C Locale assignment operator should set the locale to bogus if OOM occurs. (#14)

ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
icu4c/source/common/locid.cpp