Debian Codegraph @

intl/icu-patches/bug-2029806-surrogates.diff

raw
1 diff --git a/intl/icu/source/common/ustrcase.cpp b/intl/icu/source/common/ustrcase.cpp
2 --- a/intl/icu/source/common/ustrcase.cpp
3 +++ b/intl/icu/source/common/ustrcase.cpp
4 @@ -1713,8 +1713,10 @@
5 * remember that this simulates bulk text replacement:
6 * the decomposition would replace the entire code point
7 */
8 - --s2;
9 - --m2;
10 - c2=*(s2-1);
11 + if (start2<=(s2-2)) {
12 + --s2;
13 + --m2;
14 + c2=*(s2-1);
15 + }
16 }
17 }
18
19 @@ -1759,8 +1761,10 @@
20 * remember that this simulates bulk text replacement:
21 * the decomposition would replace the entire code point
22 */
23 - --s1;
24 - --m2;
25 - c1=*(s1-1);
26 + if (start1<=(s1-2)) {
27 + --s1;
28 + --m1;
29 + c1=*(s1-1);
30 + }
31 }
32 }