Skip to content

Conversation

@fatihhcelik
Copy link
Contributor

@fatihhcelik fatihhcelik commented Dec 28, 2025

@bedevere-app
Copy link

bedevere-app bot commented Dec 28, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot
Copy link

python-cla-bot bot commented Dec 28, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a 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.

@fatihhcelik fatihhcelik changed the title gh-143241: Fix infinite loop DoS in zoneinfo._common.load_data gh-143241: Fix infinite loop in zoneinfo._common.load_data Dec 28, 2025
@picnixz
Copy link
Member

picnixz commented Dec 28, 2025

I'm going to wait for the CI to be green and then I'll merge.

@picnixz picnixz merged commit 3ca1f2a into python:main Dec 28, 2025
46 checks passed
@miss-islington-app
Copy link

Thanks @fatihhcelik for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 28, 2025
…ythonGH-143243)

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

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

Co-authored-by: Fatih Çelik <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 28, 2025
…ythonGH-143243)

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

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

Co-authored-by: Fatih Çelik <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Dec 28, 2025

GH-143251 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Dec 28, 2025
@bedevere-app
Copy link

bedevere-app bot commented Dec 28, 2025

GH-143252 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Dec 28, 2025
picnixz added a commit that referenced this pull request Dec 28, 2025
…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 commit 3ca1f2a)

Co-authored-by: Fatih Çelik <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <[email protected]>
picnixz added a commit that referenced this pull request Dec 28, 2025
…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 commit 3ca1f2a)

Co-authored-by: Fatih Çelik <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants