From 6760ea33a0b8bcdbe847948c48fd7cd3f4d0e98d Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Fri, 22 Apr 2022 09:55:54 +0430 Subject: LibWasm: Make memory_grow validation push back the old memory size --- Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp index bfae046f22..a64d4958ea 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp @@ -1873,6 +1873,7 @@ VALIDATE_INSTRUCTION(memory_grow) { TRY(validate(MemoryIndex { 0 })); TRY((stack.take())); + stack.append(ValueType(ValueType::I32)); return {}; } -- cgit v1.2.3