FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-155454: Fix platform.libc_ver() crash on threaded libc without version by tonghuaroot · Pull Request #155455 · python/cpython · GitHub

/ cpython Public

gh-155454: Fix platform.libc_ver() crash on threaded libc without version - #155455

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-platform-libc-ver
Open

gh-155454: Fix platform.libc_ver() crash on threaded libc without version#155455
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-platform-libc-ver

Conversation

tonghuaroot commented Aug 10, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

In the so branch of platform.libc_ver(), a match with a thread suffix
(libc_r, libc_pthread) but no version number left ver as None, which was
then subscripted, raising TypeError. Guard the thread-suffix check with
ver is not None. Regression from gh-90548.

…ut version

A libc.so match with a thread suffix but no version left ver as None, which was
then subscripted. Guard the check with ver is not None.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL