mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibWasm: Allow vectors of up to 500M entries
This usually shows up in custom sections, containing plain bytes.
This commit is contained in:
parent
21c6e4c257
commit
8b0f05c540
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +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_vector_size = 500 * MiB;
|
||||
static constexpr auto max_allowed_function_locals_per_type = 42069; // Note: VERY arbitrary.
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue