IdeDebugger: fix range check in disassembler

(cherry picked from commit 84b64855b1)
This commit is contained in:
Martin 2024-09-25 22:22:13 +02:00
parent 32d8294154
commit 93b8dc38f4

View File

@ -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];