mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 02:29:34 +02:00
+ input error message in case the type section size is unexpected/wrong
This commit is contained in:
parent
a08c937beb
commit
01dbc63735
@ -2284,7 +2284,12 @@ implementation
|
||||
FFuncTypes[i].add_result(wbt);
|
||||
end;
|
||||
end;
|
||||
result:=AReader.Pos=(SectionStart+SectionSize);
|
||||
if AReader.Pos<>(SectionStart+SectionSize) then
|
||||
begin
|
||||
InputError('Unexpected type section size');
|
||||
exit;
|
||||
end;
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
function ReadImportSection: Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user