mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 23:18:44 +02:00
IDE: Prevent an infinite loop when comparing files. Issue #38185, patch from Domingo Galmés.
git-svn-id: trunk@64199 -
This commit is contained in:
parent
5d01307132
commit
473e65ba01
@ -616,6 +616,8 @@ begin
|
||||
// chomp empty lines at end
|
||||
fPart1.GetPrevLineExtends(Cur1);
|
||||
fPart2.GetPrevLineExtends(Cur2);
|
||||
if (Cur1.LineNumber < 1) or (Cur2.LineNumber < 1) then
|
||||
break;
|
||||
until not LinesAreEqual(Cur1,Cur2);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user