mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +02:00
Codetools: Prevent another range check error. Issue #40922
This commit is contained in:
parent
5914d34e58
commit
03bf02974e
@ -1831,7 +1831,7 @@ begin
|
||||
and (IsIdentChar[Source[IdentEnd]]) do
|
||||
inc(IdentEnd);
|
||||
|
||||
if not ((Source[IdentStart]='&') and IsIdentStartChar[Source[IdentStart+1]]) then
|
||||
if not ((Source[IdentStart]='&') and (IdentStart<length(Source)) and IsIdentStartChar[Source[IdentStart+1]]) then
|
||||
while (IdentStart<Position)
|
||||
and (not IsIdentStartChar[Source[IdentStart]]) do
|
||||
inc(IdentStart);
|
||||
|
Loading…
Reference in New Issue
Block a user