diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-06 14:07:52 +0430 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-06 17:55:00 +0430 |
commit | 2fc0040ceb2debc00ab5f18720ed87521d5224b0 (patch) | |
tree | 133477b996566361e4ad01ec672bb44683434b39 /Userland/Libraries/LibWasm/Constants.h | |
parent | 5636f8143d2fbc5636da1368a2670a223e65b10d (diff) | |
download | serenity-2fc0040ceb2debc00ab5f18720ed87521d5224b0.zip |
LibWasm: Tweak the implementation-defined limits a bit
Diffstat (limited to 'Userland/Libraries/LibWasm/Constants.h')
-rw-r--r-- | Userland/Libraries/LibWasm/Constants.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWasm/Constants.h b/Userland/Libraries/LibWasm/Constants.h index b228c14863..d35a27adbc 100644 --- a/Userland/Libraries/LibWasm/Constants.h +++ b/Userland/Libraries/LibWasm/Constants.h @@ -36,8 +36,9 @@ static constexpr auto extern_global_tag = 0x03; static constexpr auto page_size = 64 * KiB; -// Limits -static constexpr auto max_allowed_call_stack_depth = 1000; -static constexpr auto max_allowed_executed_instructions_per_call = 1024 * 1024 * 1024; +// Implementation-defined limits +// These are not concretely defined by the spec, so the values are only defined by us. +static constexpr auto max_allowed_call_stack_depth = 512; +static constexpr auto max_allowed_executed_instructions_per_call = 256 * 1024 * 1024; } |