René's URL Explorer Experiment


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

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

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

Description: This PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of touched functions may have been done. Issue: gh-111178

Open Graph Description: This PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of t...

X Description: This PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of t...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f0005df2-2743-1bed-898d-19a787422259
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F72:A981C:42994B:5D9408:696A0C42
html-safe-nonceffd40adcd9ef7440a47bcfcdfc7ff59573f096f107277a8bd8e295679326b0e6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjcyOkE5ODFDOjQyOTk0Qjo1RDk0MDg6Njk2QTBDNDIiLCJ2aXNpdG9yX2lkIjoiMTc1MTkwNzcwODU4MzkzOTEzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6cadc01741f544dd72381097f16062fc5bb8050167d5e1acad0589fa6d9e680c
hovercard-subject-tagpull_request:2322011250
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/129774/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:altThis PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of t...
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129774/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129774%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%2F129774%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/129774/files
Reloadhttps://github.com/python/cpython/pull/129774/files
Reloadhttps://github.com/python/cpython/pull/129774/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129774/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/129774/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/datetime-111178https://github.com/picnixz/cpython/tree/fix/ubsan/datetime-111178
Conversation 19 https://github.com/python/cpython/pull/129774
Commits 15 https://github.com/python/cpython/pull/129774/commits
Checks 39 https://github.com/python/cpython/pull/129774/checks
Files changed https://github.com/python/cpython/pull/129774/files
Please reload this pagehttps://github.com/python/cpython/pull/129774/files
gh-111178: fix UBSan failures in Modules/_datetimemodule.c https://github.com/python/cpython/pull/129774/files#top
Show all changes 15 commits https://github.com/python/cpython/pull/129774/files
d4be207 add cast macros for date and time objects picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/d4be207477317426a1e3ae04a10b1efc2499fe3d
6d1f263 fix UBSan failures for `PyDateTime_Delta` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/6d1f2633f76738d5cd0a229733589607bfd8764c
1aeeff8 fix UBSan failures for `PyDateTime_Date` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/1aeeff8da9c7d17a679bafc14145485e738c3b82
9fee212 fix UBSan failures for `PyDateTime_TZInfo` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/9fee212880c9a3cd264bd1fbca85fc4593f77077
76d2c68 fix UBSan failures for `PyDateTime_TimeZone` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/76d2c68fa82dd0691d7373e7ff6b769a7704db88
25dbe38 fix UBSan failures for `PyDateTime_Time` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/25dbe3875dc8af4d693db6d48900c7f562da39a6
0a3cb0e fix UBSan failures for `PyDateTime_DateTime` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/0a3cb0e455b3ae32bfb159508df4db0b105a4419
19bc7e1 fix UBSan failures for `PyDateTime_IsoCalendarDate` picnixz Jan 26, 2025 https://github.com/python/cpython/pull/129774/commits/19bc7e1420c44378876837f50c8490ff3d1b4458
b189115 use 'dummy' for NOARGS method picnixz Feb 6, 2025 https://github.com/python/cpython/pull/129774/commits/b189115328f2a133d152ccea35b54ba7b5082d64
3c883a6 use 'dummy' for NOARGS method picnixz Feb 6, 2025 https://github.com/python/cpython/pull/129774/commits/3c883a68c4b0dda0a538a897eb64473466fecb50
86af79a Merge remote-tracking branch 'upstream/main' into fix/ubsan/datetime-… picnixz Feb 7, 2025 https://github.com/python/cpython/pull/129774/commits/86af79a917a51b3f7c8787cc672cf09787046e8a
22bdf8c Fixup naming picnixz Feb 7, 2025 https://github.com/python/cpython/pull/129774/commits/22bdf8c59e74cd5d028e591399b2b98041e78db5
b6ee734 Do not use `_` + capital letter in new code as it is also UB. picnixz Feb 8, 2025 https://github.com/python/cpython/pull/129774/commits/b6ee734cc1f43a698eb7780e0d61473925d833ce
9296eb6 Merge branch 'fix/ubsan/datetime-111178' of github.com:picnixz/cpytho… picnixz Feb 8, 2025 https://github.com/python/cpython/pull/129774/commits/9296eb638444e91e7d9259cd16e5405d9d2a7048
f108a14 Merge in the main branch to resolve conflict with #127345 encukou Feb 19, 2025 https://github.com/python/cpython/pull/129774/commits/f108a14cd6f64bdd1f225a2af6a3bf328d22ed70
Clear filters https://github.com/python/cpython/pull/129774/files
Please reload this pagehttps://github.com/python/cpython/pull/129774/files
Please reload this pagehttps://github.com/python/cpython/pull/129774/files
Please reload this pagehttps://github.com/python/cpython/pull/129774/files
Please reload this pagehttps://github.com/python/cpython/pull/129774/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.