1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +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:
Ali Mohammad Pur 2022-10-24 03:20:58 +03:30 committed by Linus Groh
parent 21c6e4c257
commit 8b0f05c540

View file

@ -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.
}