alexcrichton opened PR #11702 from alexcrichton:fix-p1-loop to bytecodealliance:main:
This fixes an issue found through #11701, notably the "release mode infinite loops" behavior that was seen. The cause was when
fd_readdirreturned after skipping all directory entries it forgot to write the final*bufused = 0out-param in the early-exit, unlike the end of the function which already sets this.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-wasi-reviewers for a review on PR #11702.
alexcrichton requested fitzgen for a review on PR #11702.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11702.
pchickey submitted PR review:
Great find
alexcrichton merged PR #11702.
Last updated: Dec 06 2025 at 06:05 UTC