+ input error message in case the type section size is unexpected/wrong

This commit is contained in:
Nikolay Nikolov 2023-12-24 15:04:22 +02:00
parent a08c937beb
commit 01dbc63735

View File

@ -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;