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: Issue: gh-111178

Open Graph Description: Issue: gh-111178

X Description: Issue: gh-111178

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:eb936ad2-94cc-ee0b-b92a-1f5b3b3f8485
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE94:3023CE:408F27:5B493D:696A0A96
html-safe-noncedb6f1fc81c5e63d3a71c583b19f026ee794db62ca38629086c2b1bdec7b9ab3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTk0OjMwMjNDRTo0MDhGMjc6NUI0OTNEOjY5NkEwQTk2IiwidmlzaXRvcl9pZCI6IjE1MjA2MDI1ODQxNjAyNzUwOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac29256a8b4fe3de55059886a1a1d2e0bf812c3d5bd2fe6ef77fcc6d82c7288063
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/129083/files
twitter:imagehttps://avatars.githubusercontent.com/u/10796600?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10796600?s=400&v=4
og:image:altIssue: gh-111178
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129083/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129083%2Ffiles
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%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/129083/files
Reloadhttps://github.com/python/cpython/pull/129083/files
Reloadhttps://github.com/python/cpython/pull/129083/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
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/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
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
Conversation 2 https://github.com/python/cpython/pull/129083
Commits 19 https://github.com/python/cpython/pull/129083/commits
Checks 41 https://github.com/python/cpython/pull/129083/checks
Files changed https://github.com/python/cpython/pull/129083/files
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
gh-111178: fix UBSan failures in Modules/_io/*.c https://github.com/python/cpython/pull/129083/files#top
Show all changes 19 commits https://github.com/python/cpython/pull/129083/files
37bc556 fix UBSan failures for `buffered` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/37bc5562403d626ff74b16dbcb0aafcccb507039
36f5adc fix UBSan failures for `rwpair` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/36f5adc10d218540cc3c24dd97cee9562af13cb2
2a02293 fix UBSan failures for `bytesio` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/2a0229327f0189224f5a2cf4195cea5447a8d8fb
fc3cd12 fix UBSan failures for `bytesiobuf` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/fc3cd12689a19ef793a42eadc0706f3f24802989
cd728f5 fix UBSan failures for `iobase` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/cd728f5e2ecb3ea3ada4151f7923e7f67ba0dff4
0da5a81 fix UBSan failures for `stringio` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/0da5a8122cc892fd897e0da97bd708528d534309
9889af8 fix UBSan failures for `nldecoder_object` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/9889af87da581969bd081e5cf265346eb33256b7
19ed68d fix UBSan failures for `textio` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/19ed68d7be319569e567fa0382974d1f2ea314d1
249ec3e fix UBSan failures for `winconsoleio` picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/249ec3e4f257a480f1d12377cf343c09679df46b
cf44141 reduce diff picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/cf4414173930baffb7e258e8cbeaee81ae51690b
a9b3ca6 add some new lines picnixz Jan 20, 2025 https://github.com/python/cpython/pull/129083/commits/a9b3ca616b6d930e3db71e5e9541192dc29a9ec3
9cb97c2 Merge remote-tracking branch 'upstream/main' into fix/ubsan/io-111178 picnixz Jan 25, 2025 https://github.com/python/cpython/pull/129083/commits/9cb97c233e70bf459a5eb2a0ff1399105a740f84
416d740 post-merge fix picnixz Jan 25, 2025 https://github.com/python/cpython/pull/129083/commits/416d7405f4dc7669fa50d4d9aa06370c3058e969
c6f2d0e use 'ignored' for NOARGS method and 'args' for others picnixz Feb 6, 2025 https://github.com/python/cpython/pull/129083/commits/c6f2d0ee2e452ca5ad1f6383caf9bd96076572de
ec1e15d use 'dummy' for NOARGS method picnixz Feb 6, 2025 https://github.com/python/cpython/pull/129083/commits/ec1e15d5636377000e198d7a8daf7d86ef88bed3
14c0684 Merge remote-tracking branch 'upstream/main' into fix/ubsan/io-111178 picnixz Feb 7, 2025 https://github.com/python/cpython/pull/129083/commits/14c0684d4399ab3326270d73b080beeee8a2cff9
b192d6c Merge branch 'main' into fix/ubsan/io-111178 picnixz Feb 7, 2025 https://github.com/python/cpython/pull/129083/commits/b192d6c34deee2b43e3a5c07414783998a80b1b2
bb95ac0 Do not add an underscore to the macro if none is needed. picnixz Feb 8, 2025 https://github.com/python/cpython/pull/129083/commits/bb95ac083f694a2c18755f38563b00f71d983c93
2340cae Do Do not use `_` + capital letter in cast macros as it is also UB. picnixz Feb 8, 2025 https://github.com/python/cpython/pull/129083/commits/2340cae3030ee80583c302880c3ee87ecde929b9
Clear filters https://github.com/python/cpython/pull/129083/files
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
bufferedio.c https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
bytesio.c https://github.com/python/cpython/pull/129083/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
fileio.c https://github.com/python/cpython/pull/129083/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322
iobase.c https://github.com/python/cpython/pull/129083/files#diff-ff67b9b1e4944ed1b8750a6c53db460f2f8e98f073177e64a32e990844520e90
stringio.c https://github.com/python/cpython/pull/129083/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
textio.c https://github.com/python/cpython/pull/129083/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
winconsoleio.c https://github.com/python/cpython/pull/129083/files#diff-463599eb2f67c89107a6fc2431d387fef7fdbb8c860b2c424477ca9b9794282c
Modules/_io/bufferedio.chttps://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
View file https://github.com/picnixz/cpython/blob/2340cae3030ee80583c302880c3ee87ecde929b9/Modules/_io/bufferedio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129083/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/129083/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
Please reload this pagehttps://github.com/python/cpython/pull/129083/files
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.