1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibWasm: Make memory_grow validation push back the old memory size

This commit is contained in:
Ali Mohammad Pur 2022-04-22 09:55:54 +04:30 committed by Ali Mohammad Pur
parent 6e07e74261
commit 6760ea33a0

View file

@ -1873,6 +1873,7 @@ VALIDATE_INSTRUCTION(memory_grow)
{
TRY(validate(MemoryIndex { 0 }));
TRY((stack.take<ValueType::I32>()));
stack.append(ValueType(ValueType::I32));
return {};
}