Merged revision(s) 43985 #d5e1ced666 from trunk:

MaskEdit: fix possible crash in PasteFromClipBoard.
........

git-svn-id: branches/fixes_1_2@44012 -
This commit is contained in:
maxim 2014-02-11 21:52:52 +00:00
parent 1620cdf11f
commit 20dd03f617

View File

@ -1914,7 +1914,7 @@ begin
//debugln(' P = ',dbgs(p));
//debugln(' S = ',s);
//debugln(' ClipText = ',ClipText);
while (P <= FMaskLength) do
while (P <= FMaskLength) and (i <= Utf8Length(ClipText)) do
begin
//Skip any literal
while (P < FMaskLength) and (IsLiteral(FMask[P])) do Inc(P);