openjdk-23: use OpenJDK 23 as the boot JDK
[oi-userland.git] / components / library / icu-72 / patches / 136-source-common-caniter.cpp.patch
blob9aa0c2ef2a6dc0d7a8bcf538205d3b7437b67f23
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 NULL;
12 const UChar *decomp=decompString.getBuffer();
13 + if ( decomp == NULL ) {
14 + status = U_MEMORY_ALLOCATION_ERROR;
15 + return NULL;
16 + }
17 int32_t decompLen=decompString.length();
19 // See if it matches the start of segment (at segmentPos)