Procházet zdrojové kódy

* patch by Rika: Fix and possible simplification of SanitiseXMLString, part of #39800

florian před 2 roky
rodič
revize
87ee39f0e3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      compiler/verbose.pas

+ 1 - 0
compiler/verbose.pas

@@ -1267,6 +1267,7 @@ implementation
                           begin
                             UTF8Char := UTF8Char or ((CurrentChar and $3F) shl (6 * UTF8Len));
 
+                            dec(X);
                             Inc(UTF8Len);
                             if UTF8Len >= 4 then
                               { Sequence too long }