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
Notes: sideshowbarker 2024-07-17 11:35:51 +09:00

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 {};
}