From 82a515a748ef937ee3ab407baad18bb9ceec7d93 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 19 Mar 2022 22:29:27 +0330 Subject: [PATCH] LibWasm: Increase the arbitrary local value count per type limit It was arbitrary, it's still arbitrary, but now it's funny too :^) --- Userland/Libraries/LibWasm/Constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWasm/Constants.h b/Userland/Libraries/LibWasm/Constants.h index 4c76a79fde..41e15a4740 100644 --- a/Userland/Libraries/LibWasm/Constants.h +++ b/Userland/Libraries/LibWasm/Constants.h @@ -41,6 +41,6 @@ static constexpr auto page_size = 64 * KiB; static constexpr auto minimum_stack_space_to_keep_free = 256 * KiB; // Note: Value is arbitrary and chosen by testing with ASAN static constexpr auto max_allowed_executed_instructions_per_call = 256 * 1024 * 1024; static constexpr auto max_allowed_vector_size = 2 * MiB; -static constexpr auto max_allowed_function_locals_per_type = 420; // Note: VERY arbitrary. +static constexpr auto max_allowed_function_locals_per_type = 42069; // Note: VERY arbitrary. }