mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibWasm: Make memory_grow validation push back the old memory size
This commit is contained in:
parent
6e07e74261
commit
6760ea33a0
1 changed files with 1 additions and 0 deletions
|
@ -1873,6 +1873,7 @@ VALIDATE_INSTRUCTION(memory_grow)
|
||||||
{
|
{
|
||||||
TRY(validate(MemoryIndex { 0 }));
|
TRY(validate(MemoryIndex { 0 }));
|
||||||
TRY((stack.take<ValueType::I32>()));
|
TRY((stack.take<ValueType::I32>()));
|
||||||
|
stack.append(ValueType(ValueType::I32));
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue