René's URL Explorer Experiment


Title: Various UB warnings found by UBSan · Issue #148286 · python/cpython · GitHub

Open Graph Title: Various UB warnings found by UBSan · Issue #148286 · python/cpython

X Title: Various UB warnings found by UBSan · Issue #148286 · python/cpython

Description: Bug report Bug description: These were all found by UBSan in our CI (it just hasn't been complaining about them). They need to be individually checked, some may be false positives. # Objects/object.c:97:5: runtime error: member access wi...

Open Graph Description: Bug report Bug description: These were all found by UBSan in our CI (it just hasn't been complaining about them). They need to be individually checked, some may be false positives. # Objects/object...

X Description: Bug report Bug description: These were all found by UBSan in our CI (it just hasn't been complaining about them). They need to be individually checked, some may be false positives. # Objects/ob...

Opengraph URL: https://github.com/python/cpython/issues/148286

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Various UB warnings found by UBSan","articleBody":"# Bug report\n\n### Bug description:\n\nThese were all found by UBSan in our CI (it just hasn't been complaining about them). They need to be individually checked, some may be false positives.\n\n```\n# Objects/object.c:97:5: runtime error: member access within null pointer of type 'PyThreadState' (aka 'struct _ts')\nnull:Objects/object.c\n```\n\nIn `test_memoryview`:\n```\n# Objects/memoryobject.c:3032:15: runtime error: load of value 2, which is not a valid value for type 'bool'\nbool:Objects/memoryobject.c\n```\n\nIn `test_ctypes`:\n```\n# Modules/_ctypes/cfield.c:644:1: runtime error: left shift of 1 by 63 places cannot be represented in type 'int64_t' (aka 'long')\nshift-base:Modules/_ctypes/cfield.c\n\n# Modules/_ctypes/cfield.c:640:1: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'\nsigned-integer-overflow:Modules/_ctypes/cfield.c\n```\n\nIn `test_zstd`:\n```\n# Modules/_zstd/decompressor.c:598:56: runtime error: applying non-zero offset 18446744073709551615 to null pointer\npointer-overflow:Modules/_zstd/decompressor.c\n```\n\n```\n# Modules/_io/stringio.c:350:24: runtime error: addition of unsigned offset to 0x7fd01ec25850 overflowed to 0x7fd01ec2584c\npointer-overflow:Modules/_io/stringio.c\n```\n\n```\n# Objects/bytesobject.c:1190:25: runtime error: applying zero offset to null pointer\npointer-overflow:Objects/bytesobject.c\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-151274\n* gh-148168\n* gh-153187\n* gh-153204\n* gh-153258\n* gh-153644\n* gh-153645\n* gh-154912\n* gh-154913\n* gh-154915\n* gh-154926\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/StanFromIreland","@type":"Person","name":"StanFromIreland"},"datePublished":"2026-04-09T08:46:53Z","url":"https://github.com/python/cpython/issues/148286"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4d65d803-68e6-eac5-12d9-6fe077943167
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE158:2E7EBB:4AAA26E:5E439DA:6B02443D
html-safe-nonce61c3c55a88741e335594e09009f1a26ad3753f48c02e9def460138b1095f3417
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTU4OjJFN0VCQjo0QUFBMjZFOjVFNDM5REE6NkIwMjQ0M0QiLCJ2aXNpdG9yX2lkIjoiMjU4NDMxNTQyNzYyMjYzNDU1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac985d73028dfd2d283e74484b83880160ae7ecb0b9a67cdb2cfb1b7b940fed106
hovercard-subject-tagissue:4230827870
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/148286/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e24691d05bc2cb4c53e0af61b0e32ce916a3d4516e612e744bc1e7cefa7b5933/python/cpython/issues/148286
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e24691d05bc2cb4c53e0af61b0e32ce916a3d4516e612e744bc1e7cefa7b5933/python/cpython/issues/148286
og:image:altBug report Bug description: These were all found by UBSan in our CI (it just hasn't been complaining about them). They need to be individually checked, some may be false positives. # Objects/object...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameStanFromIreland
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/148286#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F148286
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%2Fissues%2F148286
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/148286
Reloadhttps://github.com/python/cpython/issues/148286
Reloadhttps://github.com/python/cpython/issues/148286
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/148286
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/148286
Various UB warnings found by UBSanhttps://github.com/python/cpython/issues/148286#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
on Apr 9, 2026https://github.com/python/cpython/issues/148286#issue-4230827870
gh-148286: Run test_capi and test_faulthandler on GHA UBSan #151274https://github.com/python/cpython/pull/151274
gh-148286: Fail on new UB in CI #148168https://github.com/python/cpython/pull/148168
gh-148286: Remove invalid test in test_decodeescape #153187https://github.com/python/cpython/pull/153187
[3.15] gh-148286: Remove invalid test in test_decodeescape (GH-153187) #153204https://github.com/python/cpython/pull/153204
gh-148286: Fix UB in ZstdDecompressor.unused_data when a frame is decompressed in one call #153258https://github.com/python/cpython/pull/153258
[3.15] gh-148286: Fix UB in ZstdDecompressor.unused_data when a frame is decompressed in one call (GH-153258) #153644https://github.com/python/cpython/pull/153644
[3.14] gh-148286: Fix UB in ZstdDecompressor.unused_data when a frame is decompressed in one call (GH-153258) #153645https://github.com/python/cpython/pull/153645
gh-148286: Fix undefined behaviour in the ctypes bit field accessors #154912https://github.com/python/cpython/pull/154912
gh-148286: Fix undefined behaviour in io.StringIO.read() after an overseek #154913https://github.com/python/cpython/pull/154913
gh-148286: Fix undefined behaviour in per-thread refcount merging #154915https://github.com/python/cpython/pull/154915
gh-148286: Track JIT-allocated memory with Valgrind client requests #154926https://github.com/python/cpython/pull/154926
StanFromIrelandhttps://github.com/StanFromIreland
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on Apr 9, 2026https://github.com/python/cpython/issues/148286#event-24328535565
StanFromIrelandhttps://github.com/StanFromIreland
on Apr 9, 2026https://github.com/python/cpython/issues/148286#event-24329972117
gh-148286: Fail when new UB is found by CI UBSan (#148168)https://github.com/python/cpython/commit/ade914bd1d6c34e995f7ca94561a4463936ffc29
gh-148286https://github.com/python/cpython/issues/148286
#148168https://github.com/python/cpython/pull/148168
ade914bhttps://github.com/python/cpython/commit/ade914bd1d6c34e995f7ca94561a4463936ffc29
picnixzhttps://github.com/picnixz
on Apr 11, 2026https://github.com/python/cpython/issues/148286#event-24408807823
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Apr 11, 2026https://github.com/python/cpython/issues/148286#issuecomment-4229640890
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Apr 11, 2026https://github.com/python/cpython/issues/148286#issuecomment-4229683643
#83870https://github.com/python/cpython/issues/83870
picnixzhttps://github.com/picnixz
on Apr 11, 2026https://github.com/python/cpython/issues/148286#event-24409510504
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Apr 11, 2026https://github.com/python/cpython/issues/148286#issuecomment-4229727615
ljfphttps://github.com/ljfp
on Apr 25, 2026https://github.com/python/cpython/issues/148286#event-24868337848
pythongh-148286: Fail when new UB is found by CI UBSan (python#148168)https://github.com/ljfp/cpython/commit/ebe6d29088cbd1379f2fcd85299e08675e6b3353
pythongh-148286https://github.com/python/cpython/issues/148286
python#148168https://github.com/python/cpython/pull/148168
ebe6d29https://github.com/ljfp/cpython/commit/ebe6d29088cbd1379f2fcd85299e08675e6b3353
StanFromIrelandhttps://github.com/StanFromIreland
on Jul 6, 2026https://github.com/python/cpython/issues/148286#event-27614702865
gh-148286: Remove invalid test in `test_decodeescape` (#153187)https://github.com/python/cpython/commit/8477652cc122e744bcc70c1e133905bcbe2d8516
gh-148286https://github.com/python/cpython/issues/148286
#153187https://github.com/python/cpython/pull/153187
8477652https://github.com/python/cpython/commit/8477652cc122e744bcc70c1e133905bcbe2d8516
[3.15] gh-148286: Remove invalid test in `test_decodeescape` (GH-153187…https://github.com/python/cpython/commit/8d215929f4327ea0e5f63c62c51c8d2892b82d18
gh-148286https://github.com/python/cpython/issues/148286
GH-153187https://github.com/python/cpython/pull/153187
8d21592https://github.com/python/cpython/commit/8d215929f4327ea0e5f63c62c51c8d2892b82d18
gh-148286: Fix UB in `ZstdDecompressor.unused_data` when a frame is d…https://github.com/python/cpython/commit/adebb68153346043c0671fa5725d269c32cc40e4
gh-148286https://github.com/python/cpython/issues/148286
adebb68https://github.com/python/cpython/commit/adebb68153346043c0671fa5725d269c32cc40e4
[3.14] gh-148286: Fix UB in `ZstdDecompressor.unused_data` when a fra…https://github.com/python/cpython/commit/b0842ed1ef73894dcddd248be394f945405d1099
gh-148286https://github.com/python/cpython/issues/148286
b0842edhttps://github.com/python/cpython/commit/b0842ed1ef73894dcddd248be394f945405d1099
[3.15] gh-148286: Fix UB in `ZstdDecompressor.unused_data` when a fra…https://github.com/python/cpython/commit/91084886e5a39de4bb34673463b141cfcb32235a
gh-148286https://github.com/python/cpython/issues/148286
9108488https://github.com/python/cpython/commit/91084886e5a39de4bb34673463b141cfcb32235a
https://github.com/matthiasgoergens
matthiasgoergenshttps://github.com/matthiasgoergens
on Jul 30, 2026https://github.com/python/cpython/issues/148286#issuecomment-5129055711
#154915https://github.com/python/cpython/pull/154915
matthiasgoergenshttps://github.com/matthiasgoergens
on Jul 30, 2026https://github.com/python/cpython/issues/148286#event-28712298001
pythongh-148286: Fix undefined behaviour in io.StringIO.read() after …https://github.com/matthiasgoergens/cpython/commit/addc87f58c13d53290064d71638492f669580815
pythongh-148286https://github.com/python/cpython/issues/148286
addc87fhttps://github.com/matthiasgoergens/cpython/commit/addc87f58c13d53290064d71638492f669580815
pythongh-148286: Fix undefined behaviour in per-thread refcount mergi…https://github.com/matthiasgoergens/cpython/commit/a4cda41759a09973c79301fcb6cdc62bb59f2e1f
pythongh-148286https://github.com/python/cpython/issues/148286
a4cda41https://github.com/matthiasgoergens/cpython/commit/a4cda41759a09973c79301fcb6cdc62bb59f2e1f
pythongh-148286: Track JIT-allocated memory with Valgrind client requ…https://github.com/matthiasgoergens/cpython/commit/f3dec60a7777cb8089e4bb78c1813cf3dca38dab
pythongh-148286https://github.com/python/cpython/issues/148286
f3dec60https://github.com/matthiasgoergens/cpython/commit/f3dec60a7777cb8089e4bb78c1813cf3dca38dab
pythongh-148286: Fix undefined behaviour in the ctypes bit field acce…https://github.com/matthiasgoergens/cpython/commit/721f6ce70d027339f0f0da9352c2557d61720137
pythongh-148286https://github.com/python/cpython/issues/148286
721f6cehttps://github.com/matthiasgoergens/cpython/commit/721f6ce70d027339f0f0da9352c2557d61720137
pythongh-148286: Fix undefined behaviour in per-thread refcount mergi…https://github.com/matthiasgoergens/cpython/commit/d94417e52078bc5f07c609362fc52ca8f0bc68fc
pythongh-148286https://github.com/python/cpython/issues/148286
d94417ehttps://github.com/matthiasgoergens/cpython/commit/d94417e52078bc5f07c609362fc52ca8f0bc68fc
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/148286
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/148286
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.