Skip to content

Validate the size of defined component types - #2624

Open
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:element-size
Open

Validate the size of defined component types#2624
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:element-size

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit is an implementation of WebAssembly/component-model#688 where the in-memory size of component model types is now calculated and validated to be below the static threshold. The eventual goal of this implementation is to simplify logic in Wasmtime for example and reduce the affect/possibility of integer overflow when handling otherwise very large types. The limits here are large enough that all preexisting components are expected to continue to validate.

This commit is an implementation of WebAssembly/component-model#688
where the in-memory size of component model types is now calculated and
validated to be below the static threshold. The eventual goal of this
implementation is to simplify logic in Wasmtime for example and reduce
the affect/possibility of integer overflow when handling otherwise very
large types. The limits here are large enough that all preexisting
components are expected to continue to validate.
@alexcrichton
alexcrichton requested a review from a team as a code owner August 26, 2026 18:01
@alexcrichton
alexcrichton requested review from fitzgen and removed request for a team August 26, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant