mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWasm: Make memory_grow validation push back the old memory size
This commit is contained in:
committed by
Ali Mohammad Pur
parent
6e07e74261
commit
6760ea33a0
@@ -1873,6 +1873,7 @@ VALIDATE_INSTRUCTION(memory_grow)
|
||||
{
|
||||
TRY(validate(MemoryIndex { 0 }));
|
||||
TRY((stack.take<ValueType::I32>()));
|
||||
stack.append(ValueType(ValueType::I32));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user