fpdebug: range checks

git-svn-id: trunk@49030 -
This commit is contained in:
martin 2015-05-15 15:19:12 +00:00
parent 24d973001c
commit 7e4cfe0aea

View File

@ -133,6 +133,7 @@ begin
SymbolArr:=PDbgImageSectionEx(p)^.Sect.RawData; SymbolArr:=PDbgImageSectionEx(p)^.Sect.RawData;
SymbolStr:=PDbgImageSectionEx(ps)^.Sect.RawData; SymbolStr:=PDbgImageSectionEx(ps)^.Sect.RawData;
SymbolCount := PDbgImageSectionEx(p)^.Sect.Size div sizeof(TImageSymbol); SymbolCount := PDbgImageSectionEx(p)^.Sect.Size div sizeof(TImageSymbol);
{$PUSH}{$R-} // SymbolArr may be more than maxSmallInt
for i := 0 to SymbolCount-1 do for i := 0 to SymbolCount-1 do
begin begin
begin begin
@ -154,6 +155,7 @@ begin
AfpSymbolInfo.AddObject(SymbolName, TObject(PtrUInt(SymbolArr^[i].Value+ImageBase+FCodeBase))); AfpSymbolInfo.AddObject(SymbolName, TObject(PtrUInt(SymbolArr^[i].Value+ImageBase+FCodeBase)));
end end
end; end;
{$POP}
end; end;
end; end;