mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 15:40:16 +02:00
* wasm internal object reader: validate that R_WASM_TAG_INDEX_LEB relocations point to a SYMTAB_EVENT symbol
This commit is contained in:
parent
962b36a6e8
commit
3121f3f8a0
@ -2697,6 +2697,11 @@ implementation
|
||||
InputError('Relocation must point to a SYMTAB_GLOBAL symbol');
|
||||
exit;
|
||||
end;
|
||||
if (RelocType=R_WASM_TAG_INDEX_LEB) and (SymbolTable[RelocIndex].SymKind<>SYMTAB_EVENT) then
|
||||
begin
|
||||
InputError('Relocation must point to a SYMTAB_EVENT symbol');
|
||||
exit;
|
||||
end;
|
||||
if (RelocType in [
|
||||
R_WASM_FUNCTION_INDEX_LEB,
|
||||
R_WASM_TABLE_INDEX_SLEB,
|
||||
|
Loading…
Reference in New Issue
Block a user