]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Dec 2025 15:11:32 +0000 (16:11 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Dec 2025 15:11:32 +0000 (15:11 +0000)
commit750c3efe82ee03915a83f948939dd39637565225
treec0cbc3ff681d471f7ff91a04f7910bccff91e3a8
parentde34f6d4044253268fbf685e9bc0907b392bccb0
[3.13] gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243) (#143252)

gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243)

Correctly reject truncated TZif files in `ZoneInfo.from_file`.

---------
(cherry picked from commit 3ca1f2a370e44874d0dc8c82a01465e0171bec5c)

Co-authored-by: Fatih Çelik <fcelik.ft@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/zoneinfo.rst
Lib/test/test_zoneinfo/test_zoneinfo.py
Lib/zoneinfo/_common.py
Misc/NEWS.d/next/Library/2025-12-28-13-49-06.gh-issue-143241.5H4b8d.rst [new file with mode: 0644]