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

unpack strip error #411

Open
rzyanhao opened this issue Apr 12, 2024 · 2 comments
Open

unpack strip error #411

rzyanhao opened this issue Apr 12, 2024 · 2 comments

Comments

@rzyanhao
Copy link

rzyanhao commented Apr 12, 2024

this error is caused by this commit : fe8cd57
image
as the red lines in this picture, the "p" passed into to stripAbsolutePath(p) is not right, because it may be modified when it has strip

@isaacs
Copy link
Owner

isaacs commented Apr 12, 2024

What is the error that you are referring to? How can I reproduce it?

@rzyanhao
Copy link
Author

for example, the entry.path is code//a/b/c/d.json, its an abnormal tar file, but it exists. And stirp is 1.
In 6.2.0, the final absolute path will be /Users/admin/unpacked/a/b/c/d.json, it's right;
in 6.2.1, the final absolute path will be /a/b/c/d.json, this will cause error, which lead to checkpath return false;

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

No branches or pull requests

2 participants