mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 13:29:27 +02:00
* patch by Rika: Fix and possible simplification of SanitiseXMLString, part of #39800
This commit is contained in:
parent
8e884d9acd
commit
a807144ead
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user