Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/intl/icu-patches/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  bug-2029806-surrogates.diff   Sprache: unbekannt

 
Spracherkennung für: .diff vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

diff --git a/intl/icu/source/common/ustrcase.cpp b/intl/icu/source/common/ustrcase.cpp
--- a/intl/icu/source/common/ustrcase.cpp
+++ b/intl/icu/source/common/ustrcase.cpp
@@ -1713,9 +1713,11 @@
                      * remember that this simulates bulk text replacement:
                      * the decomposition would replace the entire code point
                      */
-                    --s2;
-                    --m2;
-                    c2=*(s2-1);
+                    if (start2<=(s2-2)) {
+                        --s2;
+                        --m2;
+                        c2=*(s2-1);
+                    }
                 }
             }
 
@@ -1759,9 +1761,11 @@
                      * remember that this simulates bulk text replacement:
                      * the decomposition would replace the entire code point
                      */
-                    --s1;
-                    --m2;
-                    c1=*(s1-1);
+                    if (start1<=(s1-2)) {
+                        --s1;
+                        --m1;
+                        c1=*(s1-1);
+                    }
                 }
             }
 

[Dauer der Verarbeitung: 0.36 Sekunden]