summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/Constants.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-09-02 13:08:12 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-05 15:42:50 +0430
commitd52a26de3f069eea9d947c9659a522afd615cbec (patch)
treeea33f4730dc4f39062ef24d192efb400e51d8907 /Userland/Libraries/LibWasm/Constants.h
parent566c5d1e99b096f83b39bc37be57db0c6a4fe195 (diff)
downloadserenity-d52a26de3f069eea9d947c9659a522afd615cbec.zip
LibWasm: Move the vector size limit to Constants.h and increase it a bit
Diffstat (limited to 'Userland/Libraries/LibWasm/Constants.h')
-rw-r--r--Userland/Libraries/LibWasm/Constants.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWasm/Constants.h b/Userland/Libraries/LibWasm/Constants.h
index de2e8481eb..4c76a79fde 100644
--- a/Userland/Libraries/LibWasm/Constants.h
+++ b/Userland/Libraries/LibWasm/Constants.h
@@ -40,6 +40,7 @@ static constexpr auto page_size = 64 * KiB;
// These are not concretely defined by the spec, so the values are only defined by us.
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.
}