ruby-32: re-add architecure independent manifest support, remove unnecassary GNU_CPU...
[oi-userland.git] / components / library / icu-74 / patches / 135-source-common-unistr.cpp.patch
blob6d2a6ca9ecd3fe892292e5cd02dd1796b238b01f
2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4 getBuffer handling is tracked upstream as
5 https://unicode-org.atlassian.net/browse/ICU-12378
7 --- icu/source/common/unistr.cpp.orig
8 +++ icu/source/common/unistr.cpp
9 @@ -627,6 +627,9 @@
10 return result;
12 const char16_t *array = getBuffer();
13 + if (array == nullptr) {
14 + return result;
15 + }
16 int32_t len = length();
17 int32_t prev = 0;
18 for (int32_t i=0;;) {