Skip to content

Properly verify alignment in string transcoding#13012

Merged
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-verify-alignment
Apr 9, 2026
Merged

Properly verify alignment in string transcoding#13012
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-verify-alignment

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

Note: this is a fix for GHSA-jxhv-7h78-9775

This commit updates string transcoding between guest modules to properly verify alignment. Previously alignment was only verified on the first allocation, not reallocations, which is not spec-compliant. This additionally fixes a possible host panic when dealing with unaligned pointers.

This commit updates string transcoding between guest modules to properly
verify alignment. Previously alignment was only verified on the first
allocation, not reallocations, which is not spec-compliant. This
additionally fixes a possible host panic when dealing with unaligned
pointers.
@alexcrichton alexcrichton requested a review from a team as a code owner April 9, 2026 18:51
@alexcrichton alexcrichton requested review from cfallin and removed request for a team April 9, 2026 18:51
@cfallin cfallin enabled auto-merge April 9, 2026 18:55
@cfallin cfallin added this pull request to the merge queue Apr 9, 2026
Merged via the queue into bytecodealliance:main with commit ed55592 Apr 9, 2026
48 checks passed
@alexcrichton alexcrichton deleted the fix-verify-alignment branch April 9, 2026 20:16
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