Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-143241: Fix infinite loop in zoneinfo._common.load_data#143243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
python-cla-botbot commentedDec 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. 👍
Please add a NEWS entry, users will be glad to know that that bug was fixed.
I would not call it a DoS.
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-12-28-12-38-53.gh-issue-143241.yW250u.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Remove unnecessary tz_bytes variable.Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Misc/NEWS.d/next/Library/2025-12-28-13-49-06.gh-issue-143241.5H4b8d.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…H4b8d.rstCo-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
picnixz commentedDec 28, 2025
I'm going to wait for the CI to be green and then I'll merge. |
3ca1f2a intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@fatihhcelik for the PR, and@picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…ythonGH-143243)Correctly reject truncated TZif files in `ZoneInfo.from_file`.---------(cherry picked from commit3ca1f2a)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>
…ythonGH-143243)Correctly reject truncated TZif files in `ZoneInfo.from_file`.---------(cherry picked from commit3ca1f2a)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>
GH-143251 is a backport of this pull request to the3.14 branch. |
GH-143252 is a backport of this pull request to the3.13 branch. |
…H-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 commit3ca1f2a)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>
…H-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 commit3ca1f2a)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>
Uh oh!
There was an error while loading.Please reload this page.
zoneinfo._common.load_data#143241