mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:51:05 +01:00
Plugin::load validates every function body with wasmparser before wasmi reads the module, and wasmi's EnforcedLimits::strict() limit of 32 parameters and 32 results per function type applied only after that. A module whose type has 1,000 results could make the validator hold 1,000 operand entries for each call to it. check_features now reads the type section first and refuses a function type with more than 32 parameters or results, with wasmi's message, before any function body is validated.