python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / icu / patches / 135-source-common-unistr.cpp.patch
blob619424fee9b879ff92b91534c271e5d4a42c633e
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 @@ -666,6 +666,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;;) {