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
12 const char16_t *decomp=decompString.getBuffer();
13 + if (decomp == nullptr) {
14 + status = U_MEMORY_ALLOCATION_ERROR;
17 int32_t decompLen=decompString.length();
19 // See if it matches the start of segment (at segmentPos)