mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 13:49:30 +02:00
IdeDebugger: fix range check in disassembler
(cherry picked from commit 84b64855b1
)
This commit is contained in:
parent
32d8294154
commit
93b8dc38f4
@ -641,7 +641,9 @@ begin
|
||||
Result := ALine >= FTopLine;
|
||||
if not Result then
|
||||
exit;
|
||||
{$PUSH}{$Q-}{$R-} // if FTopLine is close to Low(integer) it can overflow
|
||||
ALine := ALine - FTopLine;
|
||||
{$POP}
|
||||
Result := (ALine > 0) and (ALine < length(FLineMap));
|
||||
if Result then
|
||||
AnEntry := FLineMap[ALine];
|
||||
|
Loading…
Reference in New Issue
Block a user