René's URL Explorer Experiment


Title: gh-111178: fix UBSan failures in `Modules/_io/*.c` by picnixz · Pull Request #129083 · python/cpython · GitHub

Open Graph Title: gh-111178: fix UBSan failures in `Modules/_io/*.c` by picnixz · Pull Request #129083 · python/cpython

X Title: gh-111178: fix UBSan failures in `Modules/_io/*.c` by picnixz · Pull Request #129083 · python/cpython

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

Open Graph Description: Issue: UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178

X Description: Issue: UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:7dc54c70-8c5d-f402-299a-377c25f6ba52
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9706:199660:ABC8AC:EFD80D:696A280A
html-safe-nonce10b915c23d09678d81d13483fbda4066cc9e797e6f7f8a8c2d655792a7d05ff3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzA2OjE5OTY2MDpBQkM4QUM6RUZEODBEOjY5NkEyODBBIiwidmlzaXRvcl9pZCI6IjQwNDMwMTMxMDg3NTIwNjY1NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2ea7ad97b0ce40c52be3747c71f3da56236540cca8e6fa936695576b11375e15
hovercard-subject-tagpull_request:2288146484
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/129083/commits
twitter:imagehttps://opengraph.githubassets.com/910dc93e13c6d4e3b898de865824aa49aa4c70d05a4a61c29f7c588572755b60/python/cpython/pull/129083
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/910dc93e13c6d4e3b898de865824aa49aa4c70d05a4a61c29f7c588572755b60/python/cpython/pull/129083
og:image:altIssue: UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Nonea1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569
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
releasef472b8e6c7b3fdd5d0354972a3f4c516289bf0be
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129083/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129083%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129083%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/129083/commits
Reloadhttps://github.com/python/cpython/pull/129083/commits
Reloadhttps://github.com/python/cpython/pull/129083/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129083/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/129083/commits
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/ubsan/io-111178https://github.com/picnixz/cpython/tree/fix/ubsan/io-111178
Conversationhttps://github.com/python/cpython/pull/129083
Commits19 (19)https://github.com/python/cpython/pull/129083/commits
Checkshttps://github.com/python/cpython/pull/129083/checks
Files changedhttps://github.com/python/cpython/pull/129083/files
gh-111178: fix UBSan failures in Modules/_io/*.chttps://github.com/python/cpython/pull/129083/commits#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/ubsan/io-111178https://github.com/picnixz/cpython/tree/fix/ubsan/io-111178
fix UBSan failures for `buffered`https://github.com/python/cpython/pull/129083/commits/37bc5562403d626ff74b16dbcb0aafcccb507039
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
37bc556https://github.com/python/cpython/pull/129083/commits/37bc5562403d626ff74b16dbcb0aafcccb507039
https://github.com/python/cpython/tree/37bc5562403d626ff74b16dbcb0aafcccb507039
fix UBSan failures for `rwpair`https://github.com/python/cpython/pull/129083/commits/36f5adc10d218540cc3c24dd97cee9562af13cb2
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
36f5adchttps://github.com/python/cpython/pull/129083/commits/36f5adc10d218540cc3c24dd97cee9562af13cb2
https://github.com/python/cpython/tree/36f5adc10d218540cc3c24dd97cee9562af13cb2
fix UBSan failures for `bytesio`https://github.com/python/cpython/pull/129083/commits/2a0229327f0189224f5a2cf4195cea5447a8d8fb
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
2a02293https://github.com/python/cpython/pull/129083/commits/2a0229327f0189224f5a2cf4195cea5447a8d8fb
https://github.com/python/cpython/tree/2a0229327f0189224f5a2cf4195cea5447a8d8fb
fix UBSan failures for `bytesiobuf`https://github.com/python/cpython/pull/129083/commits/fc3cd12689a19ef793a42eadc0706f3f24802989
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
fc3cd12https://github.com/python/cpython/pull/129083/commits/fc3cd12689a19ef793a42eadc0706f3f24802989
https://github.com/python/cpython/tree/fc3cd12689a19ef793a42eadc0706f3f24802989
fix UBSan failures for `iobase`https://github.com/python/cpython/pull/129083/commits/cd728f5e2ecb3ea3ada4151f7923e7f67ba0dff4
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
cd728f5https://github.com/python/cpython/pull/129083/commits/cd728f5e2ecb3ea3ada4151f7923e7f67ba0dff4
https://github.com/python/cpython/tree/cd728f5e2ecb3ea3ada4151f7923e7f67ba0dff4
fix UBSan failures for `stringio`https://github.com/python/cpython/pull/129083/commits/0da5a8122cc892fd897e0da97bd708528d534309
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
0da5a81https://github.com/python/cpython/pull/129083/commits/0da5a8122cc892fd897e0da97bd708528d534309
https://github.com/python/cpython/tree/0da5a8122cc892fd897e0da97bd708528d534309
fix UBSan failures for `nldecoder_object`https://github.com/python/cpython/pull/129083/commits/9889af87da581969bd081e5cf265346eb33256b7
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
9889af8https://github.com/python/cpython/pull/129083/commits/9889af87da581969bd081e5cf265346eb33256b7
https://github.com/python/cpython/tree/9889af87da581969bd081e5cf265346eb33256b7
fix UBSan failures for `textio`https://github.com/python/cpython/pull/129083/commits/19ed68d7be319569e567fa0382974d1f2ea314d1
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
19ed68dhttps://github.com/python/cpython/pull/129083/commits/19ed68d7be319569e567fa0382974d1f2ea314d1
https://github.com/python/cpython/tree/19ed68d7be319569e567fa0382974d1f2ea314d1
fix UBSan failures for `winconsoleio`https://github.com/python/cpython/pull/129083/commits/249ec3e4f257a480f1d12377cf343c09679df46b
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
249ec3ehttps://github.com/python/cpython/pull/129083/commits/249ec3e4f257a480f1d12377cf343c09679df46b
https://github.com/python/cpython/tree/249ec3e4f257a480f1d12377cf343c09679df46b
reduce diffhttps://github.com/python/cpython/pull/129083/commits/cf4414173930baffb7e258e8cbeaee81ae51690b
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
cf44141https://github.com/python/cpython/pull/129083/commits/cf4414173930baffb7e258e8cbeaee81ae51690b
https://github.com/python/cpython/tree/cf4414173930baffb7e258e8cbeaee81ae51690b
add some new lineshttps://github.com/python/cpython/pull/129083/commits/a9b3ca616b6d930e3db71e5e9541192dc29a9ec3
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
a9b3ca6https://github.com/python/cpython/pull/129083/commits/a9b3ca616b6d930e3db71e5e9541192dc29a9ec3
https://github.com/python/cpython/tree/a9b3ca616b6d930e3db71e5e9541192dc29a9ec3
Merge remote-tracking branch 'upstream/main' into fix/ubsan/io-111178https://github.com/python/cpython/pull/129083/commits/9cb97c233e70bf459a5eb2a0ff1399105a740f84
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
9cb97c2https://github.com/python/cpython/pull/129083/commits/9cb97c233e70bf459a5eb2a0ff1399105a740f84
https://github.com/python/cpython/tree/9cb97c233e70bf459a5eb2a0ff1399105a740f84
post-merge fixhttps://github.com/python/cpython/pull/129083/commits/416d7405f4dc7669fa50d4d9aa06370c3058e969
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
416d740https://github.com/python/cpython/pull/129083/commits/416d7405f4dc7669fa50d4d9aa06370c3058e969
https://github.com/python/cpython/tree/416d7405f4dc7669fa50d4d9aa06370c3058e969
use 'ignored' for NOARGS method and 'args' for othershttps://github.com/python/cpython/pull/129083/commits/c6f2d0ee2e452ca5ad1f6383caf9bd96076572de
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
c6f2d0ehttps://github.com/python/cpython/pull/129083/commits/c6f2d0ee2e452ca5ad1f6383caf9bd96076572de
https://github.com/python/cpython/tree/c6f2d0ee2e452ca5ad1f6383caf9bd96076572de
use 'dummy' for NOARGS methodhttps://github.com/python/cpython/pull/129083/commits/ec1e15d5636377000e198d7a8daf7d86ef88bed3
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
ec1e15dhttps://github.com/python/cpython/pull/129083/commits/ec1e15d5636377000e198d7a8daf7d86ef88bed3
https://github.com/python/cpython/tree/ec1e15d5636377000e198d7a8daf7d86ef88bed3
Merge remote-tracking branch 'upstream/main' into fix/ubsan/io-111178https://github.com/python/cpython/pull/129083/commits/14c0684d4399ab3326270d73b080beeee8a2cff9
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
14c0684https://github.com/python/cpython/pull/129083/commits/14c0684d4399ab3326270d73b080beeee8a2cff9
https://github.com/python/cpython/tree/14c0684d4399ab3326270d73b080beeee8a2cff9
Merge branch 'main' into fix/ubsan/io-111178https://github.com/python/cpython/pull/129083/commits/b192d6c34deee2b43e3a5c07414783998a80b1b2
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
b192d6chttps://github.com/python/cpython/pull/129083/commits/b192d6c34deee2b43e3a5c07414783998a80b1b2
https://github.com/python/cpython/tree/b192d6c34deee2b43e3a5c07414783998a80b1b2
Do not add an underscore to the macro if none is needed.https://github.com/python/cpython/pull/129083/commits/bb95ac083f694a2c18755f38563b00f71d983c93
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
bb95ac0https://github.com/python/cpython/pull/129083/commits/bb95ac083f694a2c18755f38563b00f71d983c93
https://github.com/python/cpython/tree/bb95ac083f694a2c18755f38563b00f71d983c93
Do Do not use `_` + capital letter in cast macros as it is also UB.https://github.com/python/cpython/pull/129083/commits/2340cae3030ee80583c302880c3ee87ecde929b9
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
2340caehttps://github.com/python/cpython/pull/129083/commits/2340cae3030ee80583c302880c3ee87ecde929b9
https://github.com/python/cpython/tree/2340cae3030ee80583c302880c3ee87ecde929b9
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.