René's URL Explorer Experiment


Title: gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` by encukou · Pull Request #135346 · python/cpython · GitHub

Open Graph Title: gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` by encukou · Pull Request #135346 · python/cpython

X Title: gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` by encukou · Pull Request #135346 · python/cpython

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

Open Graph Description: AFAIK, to avoid undefined behavior, a function needs to be called via a function pointer of the correct type. For storage, it can be cast to any other function type. It just needs to be cast back, ...

X Description: AFAIK, to avoid undefined behavior, a function needs to be called via a function pointer of the correct type. For storage, it can be cast to any other function type. It just needs to be cast back, ...

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

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:d5601da3-85b7-3ba4-6d1e-4a88c285fd49
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id83C6:D4E59:1C85E4A:23CB2BB:6B0278D2
html-safe-nonceb32d3942c2592a8ead7af2345753ed040d5edd36f09218f161bc7ca4af807fe7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0M2OkQ0RTU5OjFDODVFNEE6MjNDQjJCQjo2QjAyNzhEMiIsInZpc2l0b3JfaWQiOiI5NDA2ODE1NDQyMzY5NTU4NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7c03ae8581f19eea24b8998b216fc554c0c41a7f8881b5cc54bcd9dac8605abd
hovercard-subject-tagpull_request:2581316399
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/135346/commits
twitter:imagehttps://opengraph.githubassets.com/a4bda61f19127e279a07bf631cd5334292de7d2eb87b9d73d57de80866472f84/python/cpython/pull/135346
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a4bda61f19127e279a07bf631cd5334292de7d2eb87b9d73d57de80866472f84/python/cpython/pull/135346
og:image:altAFAIK, to avoid undefined behavior, a function needs to be called via a function pointer of the correct type. For storage, it can be cast to any other function type. It just needs to be cast back, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
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/135346/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F135346%2Fcommits
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%2F135346%2Fcommits
Sign uphttps://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/135346/commits
Reloadhttps://github.com/python/cpython/pull/135346/commits
Reloadhttps://github.com/python/cpython/pull/135346/commits
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
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:fix/ubsan/expat-133157https://github.com/encukou/cpython/tree/fix/ubsan/expat-133157
Conversationhttps://github.com/python/cpython/pull/135346
Commits9 (9)https://github.com/python/cpython/pull/135346/commits
Checkshttps://github.com/python/cpython/pull/135346/checks
Files changedhttps://github.com/python/cpython/pull/135346/files
gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in pyexpathttps://github.com/python/cpython/pull/135346/commits#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:fix/ubsan/expat-133157https://github.com/encukou/cpython/tree/fix/ubsan/expat-133157
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat`https://github.com/python/cpython/pull/135346/commits/d0dc245b3c724e4dcf2be6b711e674df3cb638f3
encukouhttps://github.com/python/cpython/commits?author=encukou
picnixzhttps://github.com/python/cpython/commits?author=picnixz
d0dc245https://github.com/python/cpython/pull/135346/commits/d0dc245b3c724e4dcf2be6b711e674df3cb638f3
https://github.com/python/cpython/tree/d0dc245b3c724e4dcf2be6b711e674df3cb638f3
Restore test from gh-134050https://github.com/python/cpython/pull/135346/commits/2d4e59003e267ccc7ea7130a8013ce8a21dbd14f
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
2d4e590https://github.com/python/cpython/pull/135346/commits/2d4e59003e267ccc7ea7130a8013ce8a21dbd14f
https://github.com/python/cpython/tree/2d4e59003e267ccc7ea7130a8013ce8a21dbd14f
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/135346/commits/8b5638dee82111eacdedbfda30bd148a1693271d
encukouhttps://github.com/python/cpython/commits?author=encukou
picnixzhttps://github.com/python/cpython/commits?author=picnixz
8b5638dhttps://github.com/python/cpython/pull/135346/commits/8b5638dee82111eacdedbfda30bd148a1693271d
https://github.com/python/cpython/tree/8b5638dee82111eacdedbfda30bd148a1693271d
Use `pyexpat_` prefixhttps://github.com/python/cpython/pull/135346/commits/4fd9af8ff359c2f1409bb65f82d56932077d4a1c
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
4fd9af8https://github.com/python/cpython/pull/135346/commits/4fd9af8ff359c2f1409bb65f82d56932077d4a1c
https://github.com/python/cpython/tree/4fd9af8ff359c2f1409bb65f82d56932077d4a1c
Merge in the main branchhttps://github.com/python/cpython/pull/135346/commits/865864abeb6623cc90810ff9ac605d014631e6d6
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
865864ahttps://github.com/python/cpython/pull/135346/commits/865864abeb6623cc90810ff9ac605d014631e6d6
https://github.com/python/cpython/tree/865864abeb6623cc90810ff9ac605d014631e6d6
Merge in the main branchhttps://github.com/python/cpython/pull/135346/commits/2ad14279db8808a887866be9ecc76d58ec91c706
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
2ad1427https://github.com/python/cpython/pull/135346/commits/2ad14279db8808a887866be9ecc76d58ec91c706
https://github.com/python/cpython/tree/2ad14279db8808a887866be9ecc76d58ec91c706
Remove the _Py_NO_SANITIZE_UNDEFINED macrohttps://github.com/python/cpython/pull/135346/commits/d587653a04f61f46f1735cb8643e6a4103e34fcc
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
d587653https://github.com/python/cpython/pull/135346/commits/d587653a04f61f46f1735cb8643e6a4103e34fcc
https://github.com/python/cpython/tree/d587653a04f61f46f1735cb8643e6a4103e34fcc
Add blurbhttps://github.com/python/cpython/pull/135346/commits/6c14913e72444a53e862a7387cbc3c07ed577cd4
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
6c14913https://github.com/python/cpython/pull/135346/commits/6c14913e72444a53e862a7387cbc3c07ed577cd4
https://github.com/python/cpython/tree/6c14913e72444a53e862a7387cbc3c07ed577cd4
Update Misc/NEWS.d/next/C_API/2025-06-19-12-47-18.gh-issue-133157.1WA85f.rsthttps://github.com/python/cpython/pull/135346/commits/f7f1734aa0cb96c1254401350c2884015d9aa726
encukouhttps://github.com/python/cpython/commits?author=encukou
picnixzhttps://github.com/python/cpython/commits?author=picnixz
f7f1734https://github.com/python/cpython/pull/135346/commits/f7f1734aa0cb96c1254401350c2884015d9aa726
https://github.com/python/cpython/tree/f7f1734aa0cb96c1254401350c2884015d9aa726
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.