Skip to content
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

[3.13] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) #123542

Merged
merged 1 commit into from
Sep 2, 2024

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
40 checks passed
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

@@ -846,6 +846,9 @@ def data_filter(member, dest_path):
# 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