mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWasm: Skip initializing active empty data sections
This commit is contained in:
committed by
Ali Mohammad Pur
parent
65355c388b
commit
d74eca78aa
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user