From 6e07e742616eb1d98d4097f3f6275175a4069f98 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Fri, 22 Apr 2022 09:55:20 +0430 Subject: [PATCH] LibWasm: Make local_tee validation keep the value on the stack --- 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 18e8eb95c1..bfae046f22 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp @@ -1420,6 +1420,7 @@ VALIDATE_INSTRUCTION(local_tee) auto& value_type = m_context.locals[index.value()]; TRY(stack.take(value_type)); + stack.append(value_type); return {}; }