Fix a crash in locid.cpp.

This CL is attempting to fix a crash when formatting a decimal on MacOS Desktop browser tab strip.

Because this is a potential security issue, see bug for more details.

Bug:333453962
Change-Id: Id72dc4ebbfb7db5ac1a126690b9430b1629afd1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/5506696
Reviewed-by: Shu-yu Guo <syg@chromium.org>
3 files changed