Skip to content

fix: memory safety issues in convertBodyInit#1504

Merged
zkat merged 1 commit into
mainfrom
sy/convert-body-init
Jul 17, 2026
Merged

fix: memory safety issues in convertBodyInit#1504
zkat merged 1 commit into
mainfrom
sy/convert-body-init

Conversation

@TartanLlama

Copy link
Copy Markdown
Contributor

There are several memory safety issues in convertBodyInit relating to treating temporary buffers as owned. Specifically, the branches for ArrayBuffer, ArrayBufferView, and URLSearchParams all use the wrong buffer for the return value. This PR ensures the data is copied into an owned buffer, which is then used as the return value.

There are no additional tests for this change because we lack sanitizer support.

@zkat
zkat enabled auto-merge (squash) July 17, 2026 17:11
@zkat
zkat merged commit c90e712 into main Jul 17, 2026
29 checks passed
@zkat
zkat deleted the sy/convert-body-init branch July 17, 2026 17:11
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