Files
vectorcraft/crates/plugins
dotCooCoo f50b903e4a Plug-ins: the host refuses a function type past 32 results before validating code
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.
2026-11-20 19:25:38 -08:00
..