mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 22:39:39 +02:00
+ check bounds for SymIndex of SYMTAB_DATA symbols
This commit is contained in:
parent
121e793c37
commit
e569863a1a
@ -2422,6 +2422,11 @@ implementation
|
||||
InputError('Error reading the data segment index of a SYMTAB_DATA symbol');
|
||||
exit;
|
||||
end;
|
||||
if SymIndex>high(DataSegments) then
|
||||
begin
|
||||
InputError('Data segment index of SYMTAB_DATA symbol out of bounds');
|
||||
exit;
|
||||
end;
|
||||
if not ReadUleb32(SymOffset) then
|
||||
begin
|
||||
InputError('Error reading the offset of a SYMTAB_DATA symbol');
|
||||
|
Loading…
Reference in New Issue
Block a user