|
@@ -3368,6 +3368,11 @@ implementation
|
|
InputError('Error reading import tag type index');
|
|
InputError('Error reading import tag type index');
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|
|
|
|
+ if TagTypeIdx>high(FFuncTypes) then
|
|
|
|
+ begin
|
|
|
|
+ InputError('Type index in tag import exceeds bounds of the types table');
|
|
|
|
+ exit;
|
|
|
|
+ end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
else
|
|
else
|
|
@@ -3723,6 +3728,11 @@ implementation
|
|
InputError('Error reading tag type index');
|
|
InputError('Error reading tag type index');
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|
|
|
|
+ if TagTypeIdx>high(FFuncTypes) then
|
|
|
|
+ begin
|
|
|
|
+ InputError('Type index in tag import exceeds bounds of the types table');
|
|
|
|
+ exit;
|
|
|
|
+ end;
|
|
end;
|
|
end;
|
|
if AReader.Pos<>(SectionStart+SectionSize) then
|
|
if AReader.Pos<>(SectionStart+SectionSize) then
|
|
begin
|
|
begin
|