Browse Source

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

florian 2 years ago
parent
commit
a807144ead
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/verbose.pas

+ 1 - 0
compiler/verbose.pas

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