gh-130577: tarfile now validates archives to ensure member offsets are non-negative#137027
gh-130577: tarfile now validates archives to ensure member offsets are non-negative#137027ethanfurman merged 3 commits intopython:mainfrom
Conversation
…ets are non-negative
gpshead
left a comment
There was a problem hiding this comment.
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 👍 |
…ets are non-negative (pythonGH-137027) Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
|
I wonder if similar treatment is needed for e.g. |
…er offsets are non-negative (pythonGH-137027) (python#137169) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
…ets are non-negative (GH-137027) (GH-137645) gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-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 now validates archives to ensure member offsets are non-negative (pythonGH-137027) Co-authored-by: Gregory P. Smith <greg@krypto.org>
tarfile.StreamError: seeking backwards is not alloweddue to unskipped block with bad checksum #130577📚 Documentation preview 📚: https://cpython-previews--137027.org.readthedocs.build/