Skip to content

gh-145883: Fix two heap-buffer-overflows in _zoneinfo#145885

Merged
StanFromIreland merged 7 commits intopython:mainfrom
StanFromIreland:zoneinfo-overflows
Apr 4, 2026
Merged

gh-145883: Fix two heap-buffer-overflows in _zoneinfo#145885
StanFromIreland merged 7 commits intopython:mainfrom
StanFromIreland:zoneinfo-overflows

Conversation

@StanFromIreland
Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland commented Mar 12, 2026

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Mar 16, 2026

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@StanFromIreland
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Mar 16, 2026

Thanks for making the requested changes!

@encukou, @pganssle: please review the changes made to this pull request.

@bedevere-app bedevere-app bot requested review from encukou and pganssle March 16, 2026 15:59
Copy link
Copy Markdown
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. 👍

I only have questions about some auxiliary files.

Comment on lines +101 to +103
# zoneinfo
Path("Lib/zoneinfo/"),
Path("Modules/_zoneinfo.c"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is it about? How is this list use and why these additions are necessary?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the list of files that triggers CIFuzz, we started fuzzing zoneinfo (which found one of the two bugs the following day) in python/library-fuzzers@eb273d5. It's not related to the issue, but it's so small I think including it here is fine.

@StanFromIreland StanFromIreland merged commit fe9befc into python:main Apr 4, 2026
63 checks passed
@StanFromIreland StanFromIreland deleted the zoneinfo-overflows branch April 4, 2026 12:29
@StanFromIreland StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Apr 4, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 4, 2026
…GH-145885)

(cherry picked from commit fe9befc)

Co-authored-by: Stan Ulbrych <stan@python.org>
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 4, 2026

GH-148086 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 Apr 4, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 4, 2026
…GH-145885)

(cherry picked from commit fe9befc)

Co-authored-by: Stan Ulbrych <stan@python.org>
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 4, 2026

GH-148087 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 Apr 4, 2026
StanFromIreland added a commit that referenced this pull request Apr 4, 2026
…5885) (#148087)

(cherry picked from commit fe9befc)

Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Apr 4, 2026
…5885) (#148086)

(cherry picked from commit fe9befc)

Co-authored-by: Stan Ulbrych <stan@python.org>
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.

4 participants