]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Sep 2024 11:19:11 +0000 (13:19 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 11:19:11 +0000 (13:19 +0200)
commited3a49ea734ada357ff4442996fd4ae71d253373
tree7d856d95013ead8b56c48daa89bd42aa6c61586c
parentffb7abe829145387ba5d4a81dde04bd037599f34
[3.13] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (#123542)

gh-121285: Remove backtracking when parsing tarfile headers (GH-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 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]