René's URL Explorer Experiment


Title: gh-160962: Fix PyInitConfig_SetStr() with NULL value by vstinner · Pull Request #161258 · python/cpython · GitHub

Open Graph Title: gh-160962: Fix PyInitConfig_SetStr() with NULL value by vstinner · Pull Request #161258 · python/cpython

X Title: gh-160962: Fix PyInitConfig_SetStr() with NULL value by vstinner · Pull Request #161258 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Previously, passing NULL to an optional string option crashed. Add tests on PyInitConfig_GetInt(), PyInitConfig_GetStr() and PyInitConfig_GetStrList() functions. Issue: Null dereferencing of a p...

X Description: Previously, passing NULL to an optional string option crashed. Add tests on PyInitConfig_GetInt(), PyInitConfig_GetStr() and PyInitConfig_GetStrList() functions. Issue: Null dereferencing of a p...

Opengraph URL: https://github.com/python/cpython/pull/161258

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e7c9a16a-c82e-fe96-dd66-43cf6f44175c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4C2:26FD49:3CC43B:5093A1:6B023A55
html-safe-nonced0d1c48c905f0063da601208081f571f7643437d5bafc1769aa40a6cd0b91a07
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEMyOjI2RkQ0OTozQ0M0M0I6NTA5M0ExOjZCMDIzQTU1IiwidmlzaXRvcl9pZCI6IjY4MjA2NjQ3MzUwODg5MTcwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace171495f79cf14a52c7984ce910a3df56e428787316db942a89bb0ecc46a99ed
hovercard-subject-tagpull_request:5141697740
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/161258/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cecbda5f83cbe2adb3d37c797c4d56deea8a29dbf94946f2e258664f71841ad6/python/cpython/pull/161258
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cecbda5f83cbe2adb3d37c797c4d56deea8a29dbf94946f2e258664f71841ad6/python/cpython/pull/161258
og:image:altPreviously, passing NULL to an optional string option crashed. Add tests on PyInitConfig_GetInt(), PyInitConfig_GetStr() and PyInitConfig_GetStrList() functions. Issue: Null dereferencing of a p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/161258#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161258
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161258
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/161258
Reloadhttps://github.com/python/cpython/pull/161258
Reloadhttps://github.com/python/cpython/pull/161258
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:initconfighttps://github.com/vstinner/cpython/tree/initconfig
Conversationhttps://github.com/python/cpython/pull/161258
Commits6 (6)https://github.com/python/cpython/pull/161258/commits
Checkshttps://github.com/python/cpython/pull/161258/checks
Files changedhttps://github.com/python/cpython/pull/161258/files
gh-160962: Fix PyInitConfig_SetStr() with NULL valuehttps://github.com/python/cpython/pull/161258#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:initconfighttps://github.com/vstinner/cpython/tree/initconfig
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/161258#issue-6187822050
Please reload this pagehttps://github.com/python/cpython/pull/161258
Null dereferencing of a pointer in initconfig.c #160962https://github.com/python/cpython/issues/160962
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/vstinner
pythongh-160962https://github.com/python/cpython/issues/160962
: Fix PyInitConfig_SetStr() with NULL valuehttps://github.com/python/cpython/pull/161258/commits/d9eae7649c8f0550d26a3ef46c704cd30d72eac7
d9eae76https://github.com/python/cpython/pull/161258/commits/d9eae7649c8f0550d26a3ef46c704cd30d72eac7
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Nov 3, 2026https://github.com/python/cpython/pull/161258#event-35047007158
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
FFY00https://github.com/FFY00
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownershttps://github.com/python/cpython/blob/431fdec842ae1460c8141ebdc27715d33bd1dade/.github/CODEOWNERS#L274
November 3, 2026 17:29https://github.com/python/cpython/pull/161258#event-35047008388
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 3, 2026https://github.com/python/cpython/pull/161258#event-35047012927
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 3, 2026 https://github.com/python/cpython/pull/161258#ref-issue-6117284697
Null dereferencing of a pointer in initconfig.c #160962 https://github.com/python/cpython/issues/160962
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/161258#issuecomment-6610952273
@sobolevnhttps://github.com/sobolevn
@NekoAsakurahttps://github.com/NekoAsakura
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/NekoAsakura
NekoAsakurahttps://github.com/NekoAsakura
Nov 3, 2026 https://github.com/python/cpython/pull/161258#pullrequestreview-5760575661
View reviewed changes https://github.com/python/cpython/pull/161258/files/d9eae7649c8f0550d26a3ef46c704cd30d72eac7
NekoAsakurahttps://github.com/NekoAsakura
https://github.com/python/cpython/pull/161258#pullrequestreview-5760575661
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#161270https://github.com/python/cpython/issues/161270
linkhttps://github.com/python/cpython/blob/069aac92c8c40e53b6931a4d31029c5c7bef0c15/Doc/c-api/init_config.rst#L158-L159
Please reload this pagehttps://github.com/python/cpython/pull/161258
Programs/_testembed.chttps://github.com/python/cpython/pull/161258/files/d9eae7649c8f0550d26a3ef46c704cd30d72eac7#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
Please reload this pagehttps://github.com/python/cpython/pull/161258
vstinnerhttps://github.com/vstinner
November 4, 2026 00:30https://github.com/python/cpython/pull/161258#commits-pushed-3893f25
https://github.com/vstinner
Remove redundant get testshttps://github.com/python/cpython/pull/161258/commits/3893f2568a7b0b49854b2595c7e27787b0c81499
3893f25https://github.com/python/cpython/pull/161258/commits/3893f2568a7b0b49854b2595c7e27787b0c81499
https://github.com/vstinner
Mention NULL in SetStr() documentationhttps://github.com/python/cpython/pull/161258/commits/210148898f170a7c686880482f77d506dd75e409
2101488https://github.com/python/cpython/pull/161258/commits/210148898f170a7c686880482f77d506dd75e409
https://github.com/vstinner
Update also GetStr() dochttps://github.com/python/cpython/pull/161258/commits/b75a5f4d7a62270ed9a2c61993bddfd2d08decc4
b75a5f4https://github.com/python/cpython/pull/161258/commits/b75a5f4d7a62270ed9a2c61993bddfd2d08decc4
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/161258#issuecomment-6618339117
@NekoAsakurahttps://github.com/NekoAsakura
#161270https://github.com/python/cpython/issues/161270
linkhttps://github.com/python/cpython/blob/069aac92c8c40e53b6931a4d31029c5c7bef0c15/Doc/c-api/init_config.rst#L158-L159
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Nov 3, 2026https://github.com/python/cpython/pull/161258#issuecomment-6618349075
Please reload this pagehttps://github.com/python/cpython/pull/161258
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#35630177https://app.readthedocs.org/projects/cpython-previews/builds/35630177/
996d0e5https://github.com/python/cpython/commit/996d0e5eb7656a1e920d751b34962e764ce7cc64
mainhttps://cpython-previews.readthedocs.io/en/main/
7e3290dhttps://github.com/python/cpython/commit/7e3290d94427cdbfe0483f0a99d589b784d77c1a
  🔍 Preview build   https://cpython-previews--161258.org.readthedocs.build/en/161258/
c-api/init_config.htmlhttps://cpython-previews--161258.org.readthedocs.build/en/161258/c-api/init_config.html
whatsnew/changelog.htmlhttps://cpython-previews--161258.org.readthedocs.build/en/161258/whatsnew/changelog.html
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/NekoAsakura
NekoAsakurahttps://github.com/NekoAsakura
Nov 4, 2026 https://github.com/python/cpython/pull/161258#pullrequestreview-5761248676
View reviewed changes https://github.com/python/cpython/pull/161258/files/b75a5f4d7a62270ed9a2c61993bddfd2d08decc4
NekoAsakurahttps://github.com/NekoAsakura
https://github.com/python/cpython/pull/161258#pullrequestreview-5761248676
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/161258
Programs/_testembed.chttps://github.com/python/cpython/pull/161258/files/b75a5f4d7a62270ed9a2c61993bddfd2d08decc4#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
Please reload this pagehttps://github.com/python/cpython/pull/161258
vstinnerhttps://github.com/vstinner
November 4, 2026 02:01https://github.com/python/cpython/pull/161258#commits-pushed-b680011
https://github.com/vstinner
Fix GetStr() doc; add tests on set errorshttps://github.com/python/cpython/pull/161258/commits/b6800112d0771ecdd2c5d851c906abc372545d64
b680011https://github.com/python/cpython/pull/161258/commits/b6800112d0771ecdd2c5d851c906abc372545d64
https://github.com/vstinner
Clarify dochttps://github.com/python/cpython/pull/161258/commits/996d0e5eb7656a1e920d751b34962e764ce7cc64
996d0e5https://github.com/python/cpython/pull/161258/commits/996d0e5eb7656a1e920d751b34962e764ce7cc64
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
November 4, 2026 01:08https://github.com/python/cpython/pull/161258#event-35081888173
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
6d69297https://github.com/python/cpython/commit/6d69297b2b1007991640310e8699979a2ef66287
Nov 4, 2026https://github.com/python/cpython/pull/161258#event-35084130239
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
November 4, 2026 01:47https://github.com/python/cpython/pull/161258#event-35084132073
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 4, 2026https://github.com/python/cpython/pull/161258#event-35084134436
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Nov 4, 2026https://github.com/python/cpython/pull/161258#issuecomment-6620316988
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 4, 2026https://github.com/python/cpython/pull/161258#issuecomment-6620320804
GH-161291https://github.com/python/cpython/pull/161291
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Nov 4, 2026https://github.com/python/cpython/pull/161258#event-35084150975
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 4, 2026https://github.com/python/cpython/pull/161258#issuecomment-6620321737
GH-161292https://github.com/python/cpython/pull/161292
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 4, 2026https://github.com/python/cpython/pull/161258#event-35084154706
vstinnerhttps://github.com/vstinner
Nov 4, 2026 https://github.com/python/cpython/pull/161258#ref-commit-22bc41d
https://github.com/miss-islington
https://github.com/vstinner
[3.15]https://github.com/python/cpython/commit/22bc41d3c2fbb5f01b2e3b235b9273b13cd80816
gh-160962https://github.com/python/cpython/issues/160962
: Fix PyInitConfig_SetStr() with NULL value (https://github.com/python/cpython/commit/22bc41d3c2fbb5f01b2e3b235b9273b13cd80816
GH-161258https://github.com/python/cpython/pull/161258
)…https://github.com/python/cpython/commit/22bc41d3c2fbb5f01b2e3b235b9273b13cd80816
22bc41dhttps://github.com/python/cpython/commit/22bc41d3c2fbb5f01b2e3b235b9273b13cd80816
#161291https://github.com/python/cpython/pull/161291
gh-160962https://github.com/python/cpython/issues/160962
GH-161258https://github.com/python/cpython/pull/161258
6d69297https://github.com/python/cpython/commit/6d69297b2b1007991640310e8699979a2ef66287
vstinnerhttps://github.com/vstinner
Nov 4, 2026 https://github.com/python/cpython/pull/161258#ref-commit-d16d33a
https://github.com/miss-islington
https://github.com/vstinner
[3.14]https://github.com/python/cpython/commit/d16d33aa6e4901ae2af3eaa55aaa156b5aff3d8b
gh-160962https://github.com/python/cpython/issues/160962
: Fix PyInitConfig_SetStr() with NULL value (https://github.com/python/cpython/commit/d16d33aa6e4901ae2af3eaa55aaa156b5aff3d8b
GH-161258https://github.com/python/cpython/pull/161258
)…https://github.com/python/cpython/commit/d16d33aa6e4901ae2af3eaa55aaa156b5aff3d8b
d16d33ahttps://github.com/python/cpython/commit/d16d33aa6e4901ae2af3eaa55aaa156b5aff3d8b
#161292https://github.com/python/cpython/pull/161292
gh-160962https://github.com/python/cpython/issues/160962
GH-161258https://github.com/python/cpython/pull/161258
6d69297https://github.com/python/cpython/commit/6d69297b2b1007991640310e8699979a2ef66287
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 4, 2026https://github.com/python/cpython/pull/161258#issuecomment-6621097657
@NekoAsakurahttps://github.com/NekoAsakura
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161258
https://github.com/NekoAsakura
NekoAsakura https://github.com/NekoAsakura
https://github.com/python/cpython/pull/161258/files/b75a5f4d7a62270ed9a2c61993bddfd2d08decc4
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/FFY00
FFY00 https://github.com/FFY00
Please reload this pagehttps://github.com/python/cpython/pull/161258
Please reload this pagehttps://github.com/python/cpython/pull/161258
https://github.com/vstinner
https://github.com/NekoAsakura
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.