René's URL Explorer Experiment


Title: gh-111178: Avoid calling functions from incompatible pointer types in memoryobject.c by chrstphrchvz · Pull Request #112863 · python/cpython · GitHub

Open Graph Title: gh-111178: Avoid calling functions from incompatible pointer types in memoryobject.c by chrstphrchvz · Pull Request #112863 · python/cpython

X Title: gh-111178: Avoid calling functions from incompatible pointer types in memoryobject.c by chrstphrchvz · Pull Request #112863 · python/cpython

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

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/112863

X: @github

direct link

Domain: github.com

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:8ba5dfd6-cd56-ec14-3917-bc95b9f1d4c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9238:1219C5:943D35:CF65C8:696A23FC
html-safe-nonce2a66df324bad9e1ce72f78c2fb3ae99d71fbad7fc0e840c2cb570ec5ccf2bedf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjM4OjEyMTlDNTo5NDNEMzU6Q0Y2NUM4OjY5NkEyM0ZDIiwidmlzaXRvcl9pZCI6IjMxODk0OTg5OTI3MzQ2NDMxOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac61ac52cf2155bd877baddc52b14997b425069bd6fbfb021a0e05a120a8ea2671
hovercard-subject-tagpull_request:1635682163
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/112863/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c654020a1788fa6b33ab4d02cb31c4d9d8f4d9e85d6ce9d6d64742bbc3083060/python/cpython/pull/112863
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c654020a1788fa6b33ab4d02cb31c4d9d8f4d9e85d6ce9d6d64742bbc3083060/python/cpython/pull/112863
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:usernamechrstphrchvz
hostnamegithub.com
expected-hostnamegithub.com
Nonea1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569
turbo-cache-controlno-preview
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/112863#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112863
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%2F112863
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/112863
Reloadhttps://github.com/python/cpython/pull/112863
Reloadhttps://github.com/python/cpython/pull/112863
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/112863
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/112863
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
Jump to bottomhttps://github.com/python/cpython/pull/112863#issue-comment-box
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
chrstphrchvz:patch-111178-memoryobjecthttps://github.com/chrstphrchvz/cpython/tree/patch-111178-memoryobject
gh-111178: Avoid calling functions from incompatible pointer types in memoryobject.c https://github.com/python/cpython/pull/112863#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
chrstphrchvz:patch-111178-memoryobjecthttps://github.com/chrstphrchvz/cpython/tree/patch-111178-memoryobject
Conversation 1 https://github.com/python/cpython/pull/112863
Commits 19 https://github.com/python/cpython/pull/112863/commits
Checks 0 https://github.com/python/cpython/pull/112863/checks
Files changed https://github.com/python/cpython/pull/112863/files
Please reload this pagehttps://github.com/python/cpython/pull/112863
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/chrstphrchvz
chrstphrchvzhttps://github.com/chrstphrchvz
Dec 8, 2023https://github.com/python/cpython/pull/112863#issue-2032102126
Please reload this pagehttps://github.com/python/cpython/pull/112863
UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178https://github.com/python/cpython/issues/111178
Please reload this pagehttps://github.com/python/cpython/pull/112863
chrstphrchvzhttps://github.com/chrstphrchvz
December 8, 2023 01:34https://github.com/python/cpython/pull/112863#commits-pushed-239cc5d
https://github.com/chrstphrchvz
Make memory_clear() compatible with inquiryhttps://github.com/python/cpython/pull/112863/commits/239cc5d2fceba69c14ff6b30bef8e89598479b1e
239cc5dhttps://github.com/python/cpython/pull/112863/commits/239cc5d2fceba69c14ff6b30bef8e89598479b1e
https://github.com/chrstphrchvz
Make memory_traverse() compatible with traverseprochttps://github.com/python/cpython/pull/112863/commits/3c376a5c147c3ee73ae881ebe74ddec94fca1f4d
3c376a5https://github.com/python/cpython/pull/112863/commits/3c376a5c147c3ee73ae881ebe74ddec94fca1f4d
https://github.com/chrstphrchvz
Make memory_dealloc() compatible with destructorhttps://github.com/python/cpython/pull/112863/commits/4b194a8196442e267cd0431204ecf51e42f1ae67
4b194a8https://github.com/python/cpython/pull/112863/commits/4b194a8196442e267cd0431204ecf51e42f1ae67
https://github.com/chrstphrchvz
Make memory_repr() compatible with reprfunchttps://github.com/python/cpython/pull/112863/commits/52c4537a21ab3af9c1bee18e7bf0ea1a8552ead1
52c4537https://github.com/python/cpython/pull/112863/commits/52c4537a21ab3af9c1bee18e7bf0ea1a8552ead1
https://github.com/chrstphrchvz
Make memory_hash() compatible with hashfunchttps://github.com/python/cpython/pull/112863/commits/92f48e6b35885a16d344ef0cabd8684bb03d556a
92f48e6https://github.com/python/cpython/pull/112863/commits/92f48e6b35885a16d344ef0cabd8684bb03d556a
https://github.com/chrstphrchvz
Make memoryiter_next() compatible with iternextfunchttps://github.com/python/cpython/pull/112863/commits/60b15fbfcc46fe4b3d7f889b409ad3b8cdecdc1e
60b15fbhttps://github.com/python/cpython/pull/112863/commits/60b15fbfcc46fe4b3d7f889b409ad3b8cdecdc1e
https://github.com/chrstphrchvz
Make memoryiter_traverse() compatible with traverseprochttps://github.com/python/cpython/pull/112863/commits/b0a78b0b8c06662887020941e2967ec1a92537d5
b0a78b0https://github.com/python/cpython/pull/112863/commits/b0a78b0b8c06662887020941e2967ec1a92537d5
https://github.com/chrstphrchvz
Make memoryiter_dealloc() compatible with destructorhttps://github.com/python/cpython/pull/112863/commits/16626642573103079504c562b33a77d6646aee80
1662664https://github.com/python/cpython/pull/112863/commits/16626642573103079504c562b33a77d6646aee80
https://github.com/chrstphrchvz
Make several functions compatible with getterhttps://github.com/python/cpython/pull/112863/commits/384357a8cd52133b7c9fe7dc4564ef6b69ece130
384357ahttps://github.com/python/cpython/pull/112863/commits/384357a8cd52133b7c9fe7dc4564ef6b69ece130
https://github.com/chrstphrchvz
Make a few functions compatible with getterhttps://github.com/python/cpython/pull/112863/commits/09c83f89293c5727dd8c64c3156ce94ccd994ffd
09c83f8https://github.com/python/cpython/pull/112863/commits/09c83f89293c5727dd8c64c3156ce94ccd994ffd
https://github.com/chrstphrchvz
Make memory_item() compatible with ssizeargfunchttps://github.com/python/cpython/pull/112863/commits/bafeb888fba97e7a3de498d6966d7d9b4fcc6b2e
bafeb88https://github.com/python/cpython/pull/112863/commits/bafeb888fba97e7a3de498d6966d7d9b4fcc6b2e
https://github.com/chrstphrchvz
Make memory_subscript() compatible with binaryfunchttps://github.com/python/cpython/pull/112863/commits/d4f704a166fe05d700d0b87afbba254b50518ff1
d4f704ahttps://github.com/python/cpython/pull/112863/commits/d4f704a166fe05d700d0b87afbba254b50518ff1
https://github.com/chrstphrchvz
Make memory_length() compatible with lenfunchttps://github.com/python/cpython/pull/112863/commits/deaa83d171cf309ce92559d05fcf04eb0634a420
deaa83dhttps://github.com/python/cpython/pull/112863/commits/deaa83d171cf309ce92559d05fcf04eb0634a420
https://github.com/chrstphrchvz
Make memory_ass_sub() compatible with objobjargprochttps://github.com/python/cpython/pull/112863/commits/b7fd5e0ed73c1b33dc4036f1c34a9a909850c016
b7fd5e0https://github.com/python/cpython/pull/112863/commits/b7fd5e0ed73c1b33dc4036f1c34a9a909850c016
https://github.com/chrstphrchvz
Make memory_releasebuf() compatible with releasebufferprochttps://github.com/python/cpython/pull/112863/commits/538ad83e14aa26a9d616a0cdafba4055cdceb107
538ad83https://github.com/python/cpython/pull/112863/commits/538ad83e14aa26a9d616a0cdafba4055cdceb107
https://github.com/chrstphrchvz
Make memory_getbuf() compatible with getbufferprochttps://github.com/python/cpython/pull/112863/commits/df53cd0b548c8d50ea15f5164ce868b68611da4c
df53cd0https://github.com/python/cpython/pull/112863/commits/df53cd0b548c8d50ea15f5164ce868b68611da4c
https://github.com/chrstphrchvz
Make mbuf_clear() compatible with inquiryhttps://github.com/python/cpython/pull/112863/commits/aeb16308b3d785dc22f99c57067efe08f098b8f4
aeb1630https://github.com/python/cpython/pull/112863/commits/aeb16308b3d785dc22f99c57067efe08f098b8f4
https://github.com/chrstphrchvz
Make mbuf_traverse() compatible with traverseprochttps://github.com/python/cpython/pull/112863/commits/ae90d7590f00f42a14f268990a39925a010f0f67
ae90d75https://github.com/python/cpython/pull/112863/commits/ae90d7590f00f42a14f268990a39925a010f0f67
https://github.com/chrstphrchvz
Make mbuf_dealloc() compatible with destructorhttps://github.com/python/cpython/pull/112863/commits/0f26620c15c29009796958bae32889009adab3f5
0f26620https://github.com/python/cpython/pull/112863/commits/0f26620c15c29009796958bae32889009adab3f5
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 8, 2023https://github.com/python/cpython/pull/112863#event-11190404140
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Dec 8, 2023 https://github.com/python/cpython/pull/112863#ref-issue-1955903601
UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178 https://github.com/python/cpython/issues/111178
https://github.com/encukou
encukouhttps://github.com/encukou
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Dec 11, 2023https://github.com/python/cpython/pull/112863#event-11212982276
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 11, 2023 https://github.com/python/cpython/pull/112863#pullrequestreview-1775633391
View reviewed changes https://github.com/python/cpython/pull/112863/files/0f26620c15c29009796958bae32889009adab3f5
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/112863#pullrequestreview-1775633391
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/112863
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 11, 2023https://github.com/python/cpython/pull/112863#event-11212986889
https://github.com/encukou
encukouhttps://github.com/encukou
f4fe65ehttps://github.com/python/cpython/commit/f4fe65e2dd7eda33c098c8af3a1974c5f7f11ab7
Dec 11, 2023https://github.com/python/cpython/pull/112863#event-11213002405
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Dec 11, 2023https://github.com/python/cpython/pull/112863#event-11213002965
arhadthedevhttps://github.com/arhadthedev
Dec 11, 2023 https://github.com/python/cpython/pull/112863#ref-commit-364cf92
https://github.com/arhadthedev
index on main:https://github.com/arhadthedev/cpython/commit/364cf927485e07bce585a5a42736b11c5abaec09
f4fe65ehttps://github.com/arhadthedev/cpython/commit/f4fe65e2dd7eda33c098c8af3a1974c5f7f11ab7
pythongh-111178https://github.com/python/cpython/issues/111178
: Avoid calling functions from …https://github.com/arhadthedev/cpython/commit/364cf927485e07bce585a5a42736b11c5abaec09
364cf92https://github.com/arhadthedev/cpython/commit/364cf927485e07bce585a5a42736b11c5abaec09
pythonGH-112863https://github.com/python/cpython/pull/112863
arhadthedevhttps://github.com/arhadthedev
Dec 11, 2023 https://github.com/python/cpython/pull/112863#ref-commit-1a351a5
https://github.com/arhadthedev
WIP on main:https://github.com/arhadthedev/cpython/commit/1a351a5426261e9c4e305098251f8b99a6a48005
f4fe65ehttps://github.com/arhadthedev/cpython/commit/f4fe65e2dd7eda33c098c8af3a1974c5f7f11ab7
pythongh-111178https://github.com/python/cpython/issues/111178
: Avoid calling functions from in…https://github.com/arhadthedev/cpython/commit/1a351a5426261e9c4e305098251f8b99a6a48005
1a351a5https://github.com/arhadthedev/cpython/commit/1a351a5426261e9c4e305098251f8b99a6a48005
pythonGH-112863https://github.com/python/cpython/pull/112863
https://github.com/chrstphrchvz
chrstphrchvzhttps://github.com/chrstphrchvz
December 12, 2023 11:03https://github.com/python/cpython/pull/112863#event-11221956465
aiskhttps://github.com/aisk
Feb 11, 2024 https://github.com/python/cpython/pull/112863#ref-commit-a9eb2c2
https://github.com/chrstphrchvz
https://github.com/aisk
pythongh-111178https://github.com/python/cpython/issues/111178
: Avoid calling functions from incompatible pointer ty…https://github.com/aisk/cpython/commit/a9eb2c2290389a385e1a35df97bc89b0ca7d9a03
a9eb2c2https://github.com/aisk/cpython/commit/a9eb2c2290389a385e1a35df97bc89b0ca7d9a03
pythonGH-112863https://github.com/python/cpython/pull/112863
Glyphackhttps://github.com/Glyphack
Sep 2, 2024 https://github.com/python/cpython/pull/112863#ref-commit-d4a572f
https://github.com/chrstphrchvz
https://github.com/Glyphack
pythongh-111178https://github.com/python/cpython/issues/111178
: Avoid calling functions from incompatible pointer ty…https://github.com/Glyphack/cpython/commit/d4a572f946959d5610c7e2e153537c3d6aab1ef1
d4a572fhttps://github.com/Glyphack/cpython/commit/d4a572f946959d5610c7e2e153537c3d6aab1ef1
pythonGH-112863https://github.com/python/cpython/pull/112863
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%2F112863
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/112863/files/0f26620c15c29009796958bae32889009adab3f5
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/112863
https://github.com/chrstphrchvz
https://github.com/encukou
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.