mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 14:10:21 +02:00
+ added check for the ExeFunctionIndex inside WriteCodeSegments
This commit is contained in:
parent
88a42c3ee0
commit
507e9eb20a
@ -4091,6 +4091,8 @@ implementation
|
||||
internalerror(2023123104);
|
||||
if not assigned(objsec.data) then
|
||||
internalerror(2023123105);
|
||||
if objsec.MainFuncSymbol.LinkingData.ExeFunctionIndex<>(i+Length(FFunctionImports)) then
|
||||
internalerror(2024010101);
|
||||
WriteUleb(FWasmSections[wsiFunction],objsec.MainFuncSymbol.LinkingData.ExeTypeIndex);
|
||||
WriteUleb(FWasmSections[wsiCode],objsec.Data.size);
|
||||
objsec.Data.seek(0);
|
||||
|
Loading…
Reference in New Issue
Block a user