KEMBAR78
[3.13] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) by miss-islington · Pull Request #123542 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 31, 2024

  • Remove backtracking when parsing tarfile headers
  • Rewrite PAX header parsing to be stricter
  • Optimize parsing of GNU extended sparse headers v0.0

(cherry picked from commit 34ddb64)

Co-authored-by: Seth Michael Larson seth@python.org
Co-authored-by: Kirill Podoprigora kirill.bast9@mail.ru
Co-authored-by: Gregory P. Smith greg@krypto.org

…thonGH-121286)

* Remove backtracking when parsing tarfile headers
* Rewrite PAX header parsing to be stricter
* Optimize parsing of GNU extended sparse headers v0.0

(cherry picked from commit 34ddb64)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@Yhg1s Yhg1s merged commit ed3a49e into python:3.13 Sep 2, 2024
Copy link

@pullenmil pullenmil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will compress your bulk put it in a hidden lib file and wont have to ask to keep. will keep out syntax error

#------------------

# Sentinel for replace() defaults, meaning "don't change the attribute"
_KEEP = object()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_bulk=object()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants