json-glib: update to 1.10.6
[oi-userland.git] / components / library / icu / patches / 136-source-common-caniter.cpp.patch
blobeff5d15efd7ea4b4fc9f4a2d9e2bd69cdb811e96
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 @@ -539,6 +539,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)