]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:14:04 +0000 (16:14 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Dec 2025 15:14:04 +0000 (15:14 +0000)
commit4c3e2114b5887592612baa14f09988867234dbe6
treea1852bc943648c731dbd57d8b00904e898146090
parent892757f056360ccc8e8523200ff767c2d00b88ab
[3.14] gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243) (#143251)

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]