LibWasm: Make memory_grow validation push back the old memory size
This commit is contained in:
parent
6e07e74261
commit
6760ea33a0
Notes:
sideshowbarker
2024-07-17 11:35:51 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/6760ea33a0 Pull-request: https://github.com/SerenityOS/serenity/pull/13770 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 1 additions and 0 deletions
|
@ -1873,6 +1873,7 @@ VALIDATE_INSTRUCTION(memory_grow)
|
|||
{
|
||||
TRY(validate(MemoryIndex { 0 }));
|
||||
TRY((stack.take<ValueType::I32>()));
|
||||
stack.append(ValueType(ValueType::I32));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue