Skip to content

Validate the size of defined component types - #2624

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:element-size
Aug 27, 2026
Merged

Validate the size of defined component types#2624
alexcrichton merged 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.

@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
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 enabled auto-merge August 27, 2026 22:21
@alexcrichton
alexcrichton added this pull request to the merge queue Aug 27, 2026
Merged via the queue into bytecodealliance:main with commit 8954cc2 Aug 27, 2026
37 checks passed
@alexcrichton
alexcrichton deleted the element-size branch August 27, 2026 22:39
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.

2 participants