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