Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of .. paths in symlinks. #366

Merged
merged 8 commits into from
Sep 24, 2024

Conversation

sunfishcode
Copy link
Member

When .. appears at the end of a symlink target, but is not at the end of the full path target, don't mark the path as being expected to open a directory.

This fixes the reduced testcase in bytecodealliance/wasmtime#9272.

When `..` appears at the end of a symlink target, but is not at the end
of the full path target, don't mark the path as being expected to open
a directory.

This fixes the reduced testcase in bytecodealliance/wasmtime#9272.
@sunfishcode sunfishcode merged commit 2a2f4b0 into main Sep 24, 2024
14 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/dotdot-in-symlink branch September 24, 2024 22:04
sunfishcode added a commit to sunfishcode/wasmtime that referenced this pull request Sep 24, 2024
cap-std 3.3.0 contains bytecodealliance/cap-std#366, which fixes bytecodealliance#9272,
which is about the handling of `..` in symlink destinations.
github-merge-queue bot pushed a commit to bytecodealliance/wasmtime that referenced this pull request Sep 25, 2024
* Update to cap-std 3.3.0.

cap-std 3.3.0 contains bytecodealliance/cap-std#366, which fixes #9272,
which is about the handling of `..` in symlink destinations.

* Add wildcard vet of pulley

---------

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
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.

1 participant