]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (...
authorSeth Michael Larson <seth@python.org>
Tue, 3 Sep 2024 15:07:13 +0000 (10:07 -0500)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 15:07:13 +0000 (15:07 +0000)
commitd449caf8a179e3b954268b3a88eb9170be3c8fbf
treebdb7e28209f7f182200def07009a5bb4b727cdc5
parent795f2597a4be988e2bb19b69ff9958e981cb894e
[3.11] gh-121285: Remove backtracking when parsing tarfile headers (GH-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 commit 34ddb64d088dd7ccc321f6103d23153256caa5d4)

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]