bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.98k stars 627 forks source link

Correct the table index calculation in aot_instantiation #3903

Closed lum1n0us closed 1 week ago

lum1n0us commented 2 weeks ago

module_inst->table_count = module->table_count + module->import_table_count;. Using it as an index will go through module->import_tables and module->tables.