-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-130577: tarfile now validates archives to ensure member offsets are non-negative #137027
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
Conversation
…ets are non-negative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's rather sad that the number format used within tar files even explicitly allows a way to express negative values. is there even a use case for that in the file format(s)?
Please cherry pick this commit to your branch (mispaste fixed): aa57b01 we don't want a whatsnew entry for this; whats new is for major features not bugfixes. a whatsnew entry makes backporting a chore (thus me removing the auto-backport labels for now) (github is refusing to let me push changes to your branch. Please always allow maintainers to push edits to PR branches.) |
(corrected mispasted commit link above) |
I enabled the allow edits to avoid any further issues and I cherry-picked the commit from your personal fork. |
By the way, thanks for the clarifications on the process 👍 |
Thanks @aeurielesn for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. |
…ets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
…ets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137169 is a backport of this pull request to the 3.14 branch. |
…ets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137170 is a backport of this pull request to the 3.13 branch. |
…ets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137171 is a backport of this pull request to the 3.12 branch. |
Sorry, @aeurielesn and @ethanfurman, I could not cleanly backport this to
|
Sorry, @aeurielesn and @ethanfurman, I could not cleanly backport this to
|
GH-137172 is a backport of this pull request to the 3.11 branch. |
…er offsets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137176 is a backport of this pull request to the 3.10 branch. |
…r offsets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137177 is a backport of this pull request to the 3.9 branch. |
…er offsets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
…er offsets are non-negative (pythonGH-137027) (cherry picked from commit 7040aa5) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
tarfile.StreamError: seeking backwards is not allowed
due to unskipped block with bad checksum #130577📚 Documentation preview 📚: https://cpython-previews--137027.org.readthedocs.build/