Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-121285: Remove backtracking when parsing tarfile headers#121286

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@sethmlarson
Copy link
Contributor

@sethmlarsonsethmlarson commentedJul 2, 2024
edited by bedevere-appbot
Loading

This removes all instances of backtracking from parsing tarfile headers, specificallyhdrcharset, PAX, and GNU sparse headers.

…hrl-yI.rstCo-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@sethmlarsonsethmlarson requested a review fromgpsheadJuly 2, 2024 18:45
@sethmlarsonsethmlarson added type-securityA security issue 3.11only security fixes 3.10only security fixes 3.9 (EOL)end of life 3.8 (EOL)end of life 3.12only security fixes labelsJul 2, 2024
@hugovk
Copy link
Member

@sethmlarson Did you mean to add the "Needs backport to 3.x" labels rather than the "3.x" ones?

@sethmlarsonsethmlarson added needs backport to 3.8 needs backport to 3.10only security fixes needs backport to 3.11only security fixes needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes and removed 3.11only security fixes 3.10only security fixes 3.9 (EOL)end of life 3.8 (EOL)end of life 3.12only security fixes labelsJul 2, 2024
@sethmlarson
Copy link
ContributorAuthor

@hugovk Yes! Selected the wrong range of tags, my bad.

hugovk reacted with thumbs up emoji

Copy link
Member

@ethanfurmanethanfurman left a comment

Choose a reason for hiding this comment

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

Please remove the type hints.

lucsorel reacted with confused emojisethmlarson reacted with heart emoji
@bedevere-app
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

sethmlarson added a commit to sethmlarson/cpython that referenced this pull requestSep 3, 2024
…ers (pythonGH-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 commit34ddb64)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>
@bedevere-app
Copy link

GH-123639 is a backport of this pull request to the3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11only security fixes labelSep 3, 2024
@bedevere-app
Copy link

GH-123639 is a backport of this pull request to the3.11 branch.

sethmlarson added a commit to sethmlarson/cpython that referenced this pull requestSep 3, 2024
…ers (pythonGH-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 commit34ddb64)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>
@bedevere-app
Copy link

GH-123640 is a backport of this pull request to the3.10 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.10only security fixes labelSep 3, 2024
sethmlarson added a commit to sethmlarson/cpython that referenced this pull requestSep 3, 2024
…rs (pythonGH-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 commit34ddb64)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>
@bedevere-app
Copy link

GH-123641 is a backport of this pull request to the3.9 branch.

sethmlarson added a commit to sethmlarson/cpython that referenced this pull requestSep 3, 2024
…rs (pythonGH-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 commit34ddb64)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>
@bedevere-app
Copy link

GH-123642 is a backport of this pull request to the3.8 branch.

@sethmlarson
Copy link
ContributorAuthor

Backports have been created.

pablogsal pushed a commit that referenced this pull requestSep 3, 2024
…H-121286) (#123639)* 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 commit34ddb64)Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>Co-authored-by: Gregory P. Smith <greg@krypto.org>
pablogsal pushed a commit that referenced this pull requestSep 3, 2024
…H-121286) (#123640)* 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 commit34ddb64)Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>Co-authored-by: Gregory P. Smith <greg@krypto.org>
ambv pushed a commit that referenced this pull requestSep 4, 2024
…-121286) (#123642)* 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 commit34ddb64)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>
ambv pushed a commit that referenced this pull requestSep 4, 2024
…-121286) (#123641)* 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 commit34ddb64)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>
frenzymadness pushed a commit to frenzymadness/cpython that referenced this pull requestSep 5, 2024
…e headers (pythonGH-121286) (python#123642)* 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 commit34ddb64)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>
frenzymadness added a commit to frenzymadness/cpython that referenced this pull requestSep 5, 2024
…e headers (pythonGH-121286) (python#123642)* 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 commit34ddb64)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>Co-authored-by: Lumír Balhar <lbalhar@redhat.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Eclips4Eclips4Eclips4 left review comments

@gpsheadgpsheadgpshead approved these changes

@ethanfurmanethanfurmanAwaiting requested review from ethanfurmanethanfurman is a code owner

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

+1 more reviewer

@personnumber3377personnumber3377personnumber3377 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

@gpsheadgpshead

Labels

type-securityA security issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@sethmlarson@hugovk@ethanfurman@gpshead@serhiy-storchaka@personnumber3377@Eclips4

[8]ページ先頭

©2009-2025 Movatter.jp