René's URL Explorer Experiment


Title: C API: Detect buffer overflow in PyBytesWriter · Issue #156939 · python/cpython · GitHub

Open Graph Title: C API: Detect buffer overflow in PyBytesWriter · Issue #156939 · python/cpython

X Title: C API: Detect buffer overflow in PyBytesWriter · Issue #156939 · python/cpython

Description: PyBytesWriter gives a directy access to its content with PyBytesWriter_GetData(). The caller is responsible to handle correctly the buffer size and write the correct amount of bytes. But programming is hard, and mistakes are easy to do. ...

Open Graph Description: PyBytesWriter gives a directy access to its content with PyBytesWriter_GetData(). The caller is responsible to handle correctly the buffer size and write the correct amount of bytes. But programmin...

X Description: PyBytesWriter gives a directy access to its content with PyBytesWriter_GetData(). The caller is responsible to handle correctly the buffer size and write the correct amount of bytes. But programmin...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API: Detect buffer overflow in PyBytesWriter","articleBody":"`PyBytesWriter` gives a directy access to its content with `PyBytesWriter_GetData()`. The caller is responsible to handle correctly the buffer size and write the correct amount of bytes. But programming is hard, and mistakes are easy to do. I propose adding a mechanism to detect buffer overflow to help developers detecting bugs in in their code.\n\nExample of bug:\n\n```c\n    PyBytesWriter *writer = PyBytesWriter_Create(0);\n    if (writer == NULL) {\n        goto error;\n    }\n    if (PyBytesWriter_Grow(writer, 3) \u003c 0) {\n        goto error;\n    }\n    char *data = PyBytesWriter_GetData(writer);\n    strcpy(data, \"abc\");\n\n    return PyBytesWriter_Finish(writer);\n```\n\nThis code allocates 3 bytes but writes 4 bytes because `strcat()` also writes a trailing NUL byte.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156943\n* gh-157071\n* gh-157103\n* gh-157109\n* gh-157129\n* gh-157130\n* gh-157131\n* gh-157232\n* gh-157233\n* gh-157234\n* gh-157236\n* gh-157382\n* gh-157383\n* gh-157385\n* gh-157455\n* gh-157529\n* gh-157550\n* gh-157551\n* gh-157552\n* gh-157708\n* gh-157798\n* gh-158400\n* gh-158404\n* gh-158409\n* gh-159530\n* gh-159531\n* gh-159533\n* gh-159539\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-09-04T14:12:17Z","url":"https://github.com/python/cpython/issues/156939"}

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:b8f94149-62b8-7a8a-bdb2-7db395fe1bb3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC46E:3F8AB1:3991D94:4921559:6B01E025
html-safe-nonce4f102d638d15803e16390c8c27c752f15d6fe72ec910b7c5f18db01919223dc1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDZFOjNGOEFCMTozOTkxRDk0OjQ5MjE1NTk6NkIwMUUwMjUiLCJ2aXNpdG9yX2lkIjoiODM2NDc2NjA3OTk4OTQ0MDU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac67a87909b8d528e0ba02d3e7ce7412f2883a182567e022e64105f35290c3bb4c
hovercard-subject-tagissue:5349122777
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/156939/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2b35dfeefa234bebd36507038119f7482a66c072ce106e8e067773551acc2649/python/cpython/issues/156939
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2b35dfeefa234bebd36507038119f7482a66c072ce106e8e067773551acc2649/python/cpython/issues/156939
og:image:altPyBytesWriter gives a directy access to its content with PyBytesWriter_GetData(). The caller is responsible to handle correctly the buffer size and write the correct amount of bytes. But programmin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/156939#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F156939
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%2F156939
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/156939
Reloadhttps://github.com/python/cpython/issues/156939
Reloadhttps://github.com/python/cpython/issues/156939
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/156939
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/156939
C API: Detect buffer overflow in PyBytesWriterhttps://github.com/python/cpython/issues/156939#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 4, 2026https://github.com/python/cpython/issues/156939#issue-5349122777
gh-156939: Detect buffer overflow in PyBytesWriter in debug mode #156943https://github.com/python/cpython/pull/156943
gh-156939: Fix struct.pack('0p', bytes) #157071https://github.com/python/cpython/pull/157071
gh-156939: Fix memory corruption check in fcntl #157103https://github.com/python/cpython/pull/157103
gh-156939: Fix xmlcharrefreplace() buffer overflow #157109https://github.com/python/cpython/pull/157109
[3.15] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) #157129https://github.com/python/cpython/pull/157129
[3.14] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) #157130https://github.com/python/cpython/pull/157130
[3.13] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) #157131https://github.com/python/cpython/pull/157131
[3.15] gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109) #157232https://github.com/python/cpython/pull/157232
[3.14] gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109) #157233https://github.com/python/cpython/pull/157233
[3.13] gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109) #157234https://github.com/python/cpython/pull/157234
gh-156939: Document that PyBytesObject ends with a NUL byte #157236https://github.com/python/cpython/pull/157236
gh-156939: Detect buffer overflow in bytearray #157382https://github.com/python/cpython/pull/157382
gh-156939: Update UTF-8 encoder for PyBytesWriter changes #157383https://github.com/python/cpython/pull/157383
gh-156939: Detect PyBytesWriter buffer overflow earlier #157385https://github.com/python/cpython/pull/157385
gh-156939: Clear newly allocated bytes in PyBytesWriter_Resize() #157455https://github.com/python/cpython/pull/157455
gh-156939: Detect buffer overflow in bytes and bytearray #157529https://github.com/python/cpython/pull/157529
[3.15] gh-156939: Document that PyBytesObject ends with a NUL byte (GH-157236) #157550https://github.com/python/cpython/pull/157550
[3.14] gh-156939: Document that PyBytesObject ends with a NUL byte (GH-157236) #157551https://github.com/python/cpython/pull/157551
[3.13] gh-156939: Document that PyBytesObject ends with a NUL byte (GH-157236) #157552https://github.com/python/cpython/pull/157552
gh-156939: Document that PyASCIIObject ends with null byte #157708https://github.com/python/cpython/pull/157708
gh-156939: Add tests on the PyUnicode C API #157798https://github.com/python/cpython/pull/157798
gh-156939: Fix Modules/_testcapi/bytes.c: remove double Py_DECREF #158400https://github.com/python/cpython/pull/158400
gh-156939: Fix two bugs in PyBytesWriter #158404https://github.com/python/cpython/pull/158404
[3.15] gh-156939: Fix two bugs in PyBytesWriter (#158404) #158409https://github.com/python/cpython/pull/158409
[3.14] gh-156939: Document that PyUnicodeObject ends with null character (GH-157708) #159530https://github.com/python/cpython/pull/159530
[3.15] gh-156939: Document that PyUnicodeObject ends with null character (GH-157708) #159531https://github.com/python/cpython/pull/159531
[3.15] gh-156939: Add tests on the PyUnicode C API #159533https://github.com/python/cpython/pull/159533
[3.14] gh-156939: Add tests on the PyUnicode C API (#159533) #159539https://github.com/python/cpython/pull/159539
Nexthttps://github.com/python/cpython/issues/156939?timeline_page=1
vstinnerhttps://github.com/vstinner
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
on Sep 4, 2026https://github.com/python/cpython/issues/156939#event-30559419066
picnixzhttps://github.com/picnixz
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Sep 4, 2026https://github.com/python/cpython/issues/156939#event-30559855917
vstinnerhttps://github.com/vstinner
on Sep 4, 2026https://github.com/python/cpython/issues/156939#event-30561174318
pythongh-156939: Detect buffer overflow in PyBytesWriter in debug modehttps://github.com/vstinner/cpython/commit/bf9beb88025aa09efa97590f9e46634737705c79
pythongh-156939https://github.com/python/cpython/issues/156939
bf9beb8https://github.com/vstinner/cpython/commit/bf9beb88025aa09efa97590f9e46634737705c79
pythongh-156939: Detect buffer overflow in PyBytesWriter in debug modehttps://github.com/vstinner/cpython/commit/62da3be2e20aea354625e68535f0768060cdb126
pythongh-156939https://github.com/python/cpython/issues/156939
62da3behttps://github.com/vstinner/cpython/commit/62da3be2e20aea354625e68535f0768060cdb126
pythongh-156939: Detect buffer overflow in PyBytesWriter in debug modehttps://github.com/vstinner/cpython/commit/97c29ffecd74bde290557346287c2414c9a700fc
pythongh-156939https://github.com/python/cpython/issues/156939
97c29ffhttps://github.com/vstinner/cpython/commit/97c29ffecd74bde290557346287c2414c9a700fc
pythongh-156939: Fix xmlcharrefreplace()https://github.com/vstinner/cpython/commit/017d597fdf87c6715d427f910a461d92adea50b6
pythongh-156939https://github.com/python/cpython/issues/156939
017d597https://github.com/vstinner/cpython/commit/017d597fdf87c6715d427f910a461d92adea50b6
pythongh-156939: Fix xmlcharrefreplace() buffer overflowhttps://github.com/vstinner/cpython/commit/d1adc337b4359036ee86579d2d5fd50d54c0cbb3
pythongh-156939https://github.com/python/cpython/issues/156939
d1adc33https://github.com/vstinner/cpython/commit/d1adc337b4359036ee86579d2d5fd50d54c0cbb3
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 7, 2026https://github.com/python/cpython/issues/156939#issuecomment-5574648822
bytes C API documentationhttps://docs.python.org/dev/c-api/bytes.html
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 7, 2026https://github.com/python/cpython/issues/156939#issuecomment-5574790319
gh-155702https://github.com/python/cpython/issues/155702
gh-155742https://github.com/python/cpython/issues/155742
vstinnerhttps://github.com/vstinner
on Sep 7, 2026https://github.com/python/cpython/issues/156939#event-30710851068
gh-156939: Fix struct.pack('0p', bytes) (#157071)https://github.com/python/cpython/commit/23525c90f539f621c802f2725e91ff234a69e1e0
gh-156939https://github.com/python/cpython/issues/156939
#157071https://github.com/python/cpython/pull/157071
23525c9https://github.com/python/cpython/commit/23525c90f539f621c802f2725e91ff234a69e1e0
[3.13] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) (#157131)https://github.com/python/cpython/commit/1c5df824718f2ad7124102b6db6f7039793676d0
gh-156939https://github.com/python/cpython/issues/156939
GH-157071https://github.com/python/cpython/pull/157071
#157131https://github.com/python/cpython/pull/157131
1c5df82https://github.com/python/cpython/commit/1c5df824718f2ad7124102b6db6f7039793676d0
[3.14] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) (#157130)https://github.com/python/cpython/commit/3a27a352f45d42543ebe3074626a67c61563d546
gh-156939https://github.com/python/cpython/issues/156939
GH-157071https://github.com/python/cpython/pull/157071
#157130https://github.com/python/cpython/pull/157130
3a27a35https://github.com/python/cpython/commit/3a27a352f45d42543ebe3074626a67c61563d546
pythongh-156939: Fix xmlcharrefreplace() buffer overflowhttps://github.com/vstinner/cpython/commit/3bdaf2c8fd4abec8812f3520e156b2c305a10593
pythongh-156939https://github.com/python/cpython/issues/156939
3bdaf2chttps://github.com/vstinner/cpython/commit/3bdaf2c8fd4abec8812f3520e156b2c305a10593
pythongh-156939: Fix xmlcharrefreplace() buffer overflowhttps://github.com/vstinner/cpython/commit/aada0edbbb4484256deca9958ea2097b86ae126e
pythongh-156939https://github.com/python/cpython/issues/156939
aada0edhttps://github.com/vstinner/cpython/commit/aada0edbbb4484256deca9958ea2097b86ae126e
vstinnerhttps://github.com/vstinner
on Sep 17, 2026https://github.com/python/cpython/issues/156939#event-31349063594
pythongh-156939: Document that PyASCIIObject ends with null bytehttps://github.com/vstinner/cpython/commit/dcc4075824f19c2f2db6ac550488bf2d6c1d386f
pythongh-156939https://github.com/python/cpython/issues/156939
dcc4075https://github.com/vstinner/cpython/commit/dcc4075824f19c2f2db6ac550488bf2d6c1d386f
pythongh-156939: Document that PyASCIIObject ends with null bytehttps://github.com/vstinner/cpython/commit/ee3413888c0967d2481e44aabdfb14ea0086962e
pythongh-156939https://github.com/python/cpython/issues/156939
ee34138https://github.com/vstinner/cpython/commit/ee3413888c0967d2481e44aabdfb14ea0086962e
pythongh-156939: Add tests on the PyUnicode C APIhttps://github.com/vstinner/cpython/commit/aa13241c7fbdd2a1ed04308d2b19eaf5fd637375
pythongh-156939https://github.com/python/cpython/issues/156939
aa13241https://github.com/vstinner/cpython/commit/aa13241c7fbdd2a1ed04308d2b19eaf5fd637375
gh-156939: Document that PyUnicodeObject ends with null character (#1…https://github.com/python/cpython/commit/4d3b405df82ab7b92348c242e026b4093ac211a5
gh-156939https://github.com/python/cpython/issues/156939
#1…https://github.com/python/cpython/pull/157708
4d3b405https://github.com/python/cpython/commit/4d3b405df82ab7b92348c242e026b4093ac211a5
pythongh-156939: Add tests on the PyUnicode C APIhttps://github.com/vstinner/cpython/commit/e0d8fd57424386136c0d721b8e79c55dcc72c3f0
pythongh-156939https://github.com/python/cpython/issues/156939
e0d8fd5https://github.com/vstinner/cpython/commit/e0d8fd57424386136c0d721b8e79c55dcc72c3f0
gh-156939: Add tests on the PyUnicode C API (#157798)https://github.com/python/cpython/commit/e8f644868b3ba350897c05c0d44b5b7081b263eb
gh-156939https://github.com/python/cpython/issues/156939
#157798https://github.com/python/cpython/pull/157798
e8f6448https://github.com/python/cpython/commit/e8f644868b3ba350897c05c0d44b5b7081b263eb
vstinnerhttps://github.com/vstinner
on Sep 29, 2026https://github.com/python/cpython/issues/156939#event-32075892248
pythongh-156939: Fix two bugs in PyBytesWriterhttps://github.com/vstinner/cpython/commit/ed1785fc76e4a8ce86c9f4e3823b11fd160539b4
pythongh-156939https://github.com/python/cpython/issues/156939
ed1785fhttps://github.com/vstinner/cpython/commit/ed1785fc76e4a8ce86c9f4e3823b11fd160539b4
gh-156939: Fix Modules/_testcapi/bytes.c: remove double Py_DECREF (#1…https://github.com/python/cpython/commit/90d40027f75cb096ac9abf85f3fb6a2a13b21824
gh-156939https://github.com/python/cpython/issues/156939
#1…https://github.com/python/cpython/pull/158400
90d4002https://github.com/python/cpython/commit/90d40027f75cb096ac9abf85f3fb6a2a13b21824
gh-156939: Fix two bugs in PyBytesWriter (#158404)https://github.com/python/cpython/commit/24ea85a4c2998b36cc4c83ff0505678d178b49d1
gh-156939https://github.com/python/cpython/issues/156939
#158404https://github.com/python/cpython/pull/158404
24ea85ahttps://github.com/python/cpython/commit/24ea85a4c2998b36cc4c83ff0505678d178b49d1
hugovkhttps://github.com/hugovk
on Sep 30, 2026https://github.com/python/cpython/issues/156939#event-32148435206
[3.15] gh-156939: Fix two bugs in PyBytesWriter (#158404) (#158409)https://github.com/python/cpython/commit/3740f74b39a3a61fa2b8b63f304d9fb8cfdfa168
gh-156939https://github.com/python/cpython/issues/156939
#158404https://github.com/python/cpython/pull/158404
#158409https://github.com/python/cpython/pull/158409
3740f74https://github.com/python/cpython/commit/3740f74b39a3a61fa2b8b63f304d9fb8cfdfa168
serhiy-storchakahttps://github.com/serhiy-storchaka
on Oct 10, 2026https://github.com/python/cpython/issues/156939#event-32937016625
[3.15] gh-156939: Fix struct.pack('0p', bytes) (GH-157071) (GH-157129)https://github.com/python/cpython/commit/61d94ede7f307d9df232e83365138c1e87c1e7d0
gh-156939https://github.com/python/cpython/issues/156939
GH-157071https://github.com/python/cpython/pull/157071
GH-157129https://github.com/python/cpython/pull/157129
61d94edhttps://github.com/python/cpython/commit/61d94ede7f307d9df232e83365138c1e87c1e7d0
vstinnerhttps://github.com/vstinner
on Oct 16, 2026https://github.com/python/cpython/issues/156939#event-33449091035
[3.14] gh-156939: Document that PyUnicodeObject ends with null charac…https://github.com/python/cpython/commit/823f78159d97af4767c8db391b61cadec493d4be
gh-156939https://github.com/python/cpython/issues/156939
823f781https://github.com/python/cpython/commit/823f78159d97af4767c8db391b61cadec493d4be
[3.15] gh-156939: Document that PyUnicodeObject ends with null charac…https://github.com/python/cpython/commit/5a6369fdb1985e8b86ab03503916dcc920e229d7
gh-156939https://github.com/python/cpython/issues/156939
5a6369fhttps://github.com/python/cpython/commit/5a6369fdb1985e8b86ab03503916dcc920e229d7
[3.15] gh-156939: Add tests on the PyUnicode C API (#159533)https://github.com/python/cpython/commit/bcbe9bcbad03d44dd1188422beb22f2f434e28c4
gh-156939https://github.com/python/cpython/issues/156939
#159533https://github.com/python/cpython/pull/159533
bcbe9bchttps://github.com/python/cpython/commit/bcbe9bcbad03d44dd1188422beb22f2f434e28c4
[3.14] gh-156939: Add tests on the PyUnicode C API (#159533) (#159539)https://github.com/python/cpython/commit/21aae35f49b4013f4e2f3de89a7f6455244ee6f1
gh-156939https://github.com/python/cpython/issues/156939
#159533https://github.com/python/cpython/pull/159533
#159539https://github.com/python/cpython/pull/159539
21aae35https://github.com/python/cpython/commit/21aae35f49b4013f4e2f3de89a7f6455244ee6f1
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/156939
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/156939
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%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.