Stream: git-wasmtime

Topic: wasmtime / PR #13649 [46.0.0] Fix leak in `fd_renumber`


view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 14:36):

alexcrichton requested pchickey for a review on PR #13649.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 14:36):

alexcrichton opened PR #13649 from alexcrichton:back46 to bytecodealliance:release-46.0.0:

This commit fixes a file descriptor leak in the WASIp1 implementation of fd_renumber in the wasmtime-wasi crate. 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 the fd_close call to close the destination.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 14:36):

alexcrichton requested wasmtime-core-reviewers for a review on PR #13649.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 14:36):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #13649.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 16:30):

:thumbs_up: dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2026 at 16:30):

:check: alexcrichton merged PR #13649.


Last updated: Jul 29 2026 at 05:03 UTC