-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Tarfile ignores an error when trying to extract a directory on top of a file #114959
Comments
serhiy-storchaka
added
type-bug
An unexpected behavior, bug, or error
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Feb 3, 2024
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 <[email protected]>
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 <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 3, 2024
…ory on top of a file (GH-114960) (GH-114963) Also, add tests common to tarfile and zipfile. (cherry picked from commit 96bce03) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 3, 2024
…ory on top of a file (GH-114960) (GH-114964) Also, add tests common to tarfile and zipfile. (cherry picked from commit 96bce03) Co-authored-by: Serhiy Storchaka <[email protected]>
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
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: