ruby-32: re-add architecure independent manifest support, remove unnecassary GNU_CPU...
[oi-userland.git] / components / library / icu-74 / patches / 136-source-common-caniter.cpp.patch
blob0884138b03075d9af743fc2fa3ff23d3879bfa92
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/caniter.cpp.orig
8 +++ icu/source/common/caniter.cpp
9 @@ -518,6 +518,10 @@
10 return nullptr;
12 const char16_t *decomp=decompString.getBuffer();
13 + if (decomp == nullptr) {
14 + status = U_MEMORY_ALLOCATION_ERROR;
15 + return nullptr;
16 + }
17 int32_t decompLen=decompString.length();
19 // See if it matches the start of segment (at segmentPos)