mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 01:38:17 +02:00
codetools: fixed range check in TLinkScanner.SkipTillEndifElse
git-svn-id: trunk@31197 -
This commit is contained in:
parent
81c166a802
commit
efd0eebe51
@ -3534,14 +3534,14 @@ begin
|
||||
begin
|
||||
SrcPos:=p-PChar(Src)+1;
|
||||
SkipCurlyComment;
|
||||
if FSkippingDirectives=lssdNone then break;
|
||||
if (FSkippingDirectives=lssdNone) or (SrcPos>SrcLen) then break;
|
||||
p:=@Src[SrcPos];
|
||||
end;
|
||||
'/':
|
||||
if p[1]='/' then begin
|
||||
SrcPos:=p-PChar(Src)+1;
|
||||
SkipLineComment;
|
||||
if FSkippingDirectives=lssdNone then break;
|
||||
if (FSkippingDirectives=lssdNone) or (SrcPos>SrcLen) then break;
|
||||
p:=@Src[SrcPos];
|
||||
end else
|
||||
inc(p);
|
||||
@ -3549,7 +3549,7 @@ begin
|
||||
if p[1]='*' then begin
|
||||
SrcPos:=p-PChar(Src)+1;
|
||||
SkipRoundComment;
|
||||
if FSkippingDirectives=lssdNone then break;
|
||||
if (FSkippingDirectives=lssdNone) or (SrcPos>SrcLen) then break;
|
||||
p:=@Src[SrcPos];
|
||||
end else
|
||||
inc(p);
|
||||
|
Loading…
Reference in New Issue
Block a user