mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 18:10:39 +02:00
fpdebug: range checks
git-svn-id: trunk@49030 -
This commit is contained in:
parent
24d973001c
commit
7e4cfe0aea
@ -133,6 +133,7 @@ begin
|
||||
SymbolArr:=PDbgImageSectionEx(p)^.Sect.RawData;
|
||||
SymbolStr:=PDbgImageSectionEx(ps)^.Sect.RawData;
|
||||
SymbolCount := PDbgImageSectionEx(p)^.Sect.Size div sizeof(TImageSymbol);
|
||||
{$PUSH}{$R-} // SymbolArr may be more than maxSmallInt
|
||||
for i := 0 to SymbolCount-1 do
|
||||
begin
|
||||
begin
|
||||
@ -154,6 +155,7 @@ begin
|
||||
AfpSymbolInfo.AddObject(SymbolName, TObject(PtrUInt(SymbolArr^[i].Value+ImageBase+FCodeBase)));
|
||||
end
|
||||
end;
|
||||
{$POP}
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user