mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWasm: Skip initializing active empty data sections
This commit is contained in:
parent
65355c388b
commit
d74eca78aa
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,8 @@ InstantiationResult AbstractMachine::instantiate(Module const& module, Vector<Ex
|
|||
};
|
||||
return;
|
||||
}
|
||||
if (data.init.is_empty())
|
||||
return;
|
||||
auto address = main_module_instance.memories()[data.index.value()];
|
||||
if (auto instance = m_store.get(address)) {
|
||||
if (auto max = instance->type().limits().max(); max.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue