-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Tarfile ignores an error when trying to extract a directory on top of a file #114959
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 3, 2024
…ry on top of a file Also, add tests common to tarfile and zipfile.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 3, 2024
…ry on top of a file Also, add tests common to tarfile and zipfile.
serhiy-storchaka
added a commit
that referenced
this issue
Feb 3, 2024
…top of a file (GH-114960) Also, add tests common to tarfile and zipfile.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 3, 2024
…ry on top of a file (pythonGH-114960) Also, add tests common to tarfile and zipfile. (cherry picked from commit 96bce03) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 3, 2024
…ry on top of a file (pythonGH-114960) Also, add tests common to tarfile and zipfile. (cherry picked from commit 96bce03) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 3, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 3, 2024
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…ry on top of a file (pythonGH-114960) Also, add tests common to tarfile and zipfile.
fsc-eriker
pushed a commit
to fsc-eriker/cpython
that referenced
this issue
Feb 14, 2024
…ry on top of a file (pythonGH-114960) Also, add tests common to tarfile and zipfile.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
During review of #112966 and #103263 I found inconsistency between
zipfile
andtarfile
. Whenzipfile
tries to extract a directory on top of an existing file, it fails. Whentarfile
tries to extract a directory on top of an existing file, it silently returns, keeping an existing file. This is an obvious bug intarfile
.Both modules should be more cautious when extract on top of symlinks, but this is a different issue.
Linked PRs
The text was updated successfully, but these errors were encountered: