]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (#123642)
authorSeth Michael Larson <seth@python.org>
Wed, 4 Sep 2024 15:41:42 +0000 (10:41 -0500)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 15:41:42 +0000 (17:41 +0200)
commit7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d
tree20ae0e2d2f3f7debf6143542b34b1c4e894ddea5
parent7bc367e464ce50b956dd232c1dfa1cad4e7fb814
[3.8] gh-121285: Remove backtracking when parsing tarfile headers (GH-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 commit 34ddb64d088dd7ccc321f6103d23153256caa5d4)

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>
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Security/2024-07-02-13-39-20.gh-issue-121285.hrl-yI.rst [new file with mode: 0644]