mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 00:40:18 +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;
|
Result := ALine >= FTopLine;
|
||||||
if not Result then
|
if not Result then
|
||||||
exit;
|
exit;
|
||||||
|
{$PUSH}{$Q-}{$R-} // if FTopLine is close to Low(integer) it can overflow
|
||||||
ALine := ALine - FTopLine;
|
ALine := ALine - FTopLine;
|
||||||
|
{$POP}
|
||||||
Result := (ALine > 0) and (ALine < length(FLineMap));
|
Result := (ALine > 0) and (ALine < length(FLineMap));
|
||||||
if Result then
|
if Result then
|
||||||
AnEntry := FLineMap[ALine];
|
AnEntry := FLineMap[ALine];
|
||||||
|
Loading…
Reference in New Issue
Block a user