alexcrichton opened PR #13647 from alexcrichton:back44 to bytecodealliance:release-44.0.0:
This commit fixes a file descriptor leak in the WASIp1 implementation of
fd_renumberin thewasmtime-wasicrate. Notably the previous
implementation did not fully close the file descriptor being
renumbered-to which meant that the host's resources for the file,
including the file descriptor, stayed alive. The fix here is to validate
both fds exist and then delegate to thefd_closecall to close the
destination.This additionally updates the behavior of
fd_renumberwhen renumbering
to fds that weren't previously open to match themainbranch which
notably rejects these calls.
alexcrichton requested pchickey for a review on PR #13647.
alexcrichton requested wasmtime-wasi-reviewers for a review on PR #13647.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13647.
alexcrichton requested fitzgen for a review on PR #13647.
alexcrichton requested wasmtime-default-reviewers for a review on PR #13647.
:thumbs_up: dicej submitted PR review.
:check: alexcrichton merged PR #13647.
Last updated: Jul 29 2026 at 05:03 UTC