René's URL Explorer Experiment


Title: gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed by vstinner · Pull Request #146113 · python/cpython · GitHub

Open Graph Title: gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed by vstinner · Pull Request #146113 · python/cpython

X Title: gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed by vstinner · Pull Request #146113 · python/cpython

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

Open Graph Description: The function can fail on a memory allocation failure. Bug reported by devdanzin. Issue: _set_str missing NULL check after PyUnicode_DecodeASCII in _csv.c #146093

X Description: The function can fail on a memory allocation failure. Bug reported by devdanzin. Issue: _set_str missing NULL check after PyUnicode_DecodeASCII in _csv.c #146093

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

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:360794d1-f733-a6bd-988f-a72dbaffdb33
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC358:80AF9:244865:314A51:6A513E93
html-safe-nonceb231d15278bd1ab8779a3fc9b42856445b3ed148f78260178eb0de52f0474d98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzU4OjgwQUY5OjI0NDg2NTozMTRBNTE6NkE1MTNFOTMiLCJ2aXNpdG9yX2lkIjoiMTEwMjAxMDAyMDYyNTcyNzEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacef16cacdc5fab69243dae092d4632d6ea4a9058d27132094df314708e6776926
hovercard-subject-tagpull_request:3415207575
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/146113/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/20a933273790fb3f7f27fa4d50b088c0afbcfa73e608c7e3c7bd6ada8c889846/python/cpython/pull/146113
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/20a933273790fb3f7f27fa4d50b088c0afbcfa73e608c7e3c7bd6ada8c889846/python/cpython/pull/146113
og:image:altThe function can fail on a memory allocation failure. Bug reported by devdanzin. Issue: _set_str missing NULL check after PyUnicode_DecodeASCII in _csv.c #146093
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
Nonee840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff
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
releasee876f00c5723f6080b9d294e4958fd4d506e6faf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/146113#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146113
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F146113
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/146113
Reloadhttps://github.com/python/cpython/pull/146113
Reloadhttps://github.com/python/cpython/pull/146113
Please reload this pagehttps://github.com/python/cpython/pull/146113
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/146113
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:fix_csvhttps://github.com/vstinner/cpython/tree/fix_csv
Conversationhttps://github.com/python/cpython/pull/146113
Commits1 (1)https://github.com/python/cpython/pull/146113/commits
Checkshttps://github.com/python/cpython/pull/146113/checks
Files changedhttps://github.com/python/cpython/pull/146113/files
gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failedhttps://github.com/python/cpython/pull/146113#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:fix_csvhttps://github.com/vstinner/cpython/tree/fix_csv
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 18, 2026https://github.com/python/cpython/pull/146113#issue-4095527228
Please reload this pagehttps://github.com/python/cpython/pull/146113
_set_str missing NULL check after PyUnicode_DecodeASCII in _csv.c #146093https://github.com/python/cpython/issues/146093
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/vstinner
pythongh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII()…https://github.com/python/cpython/pull/146113/commits/7a09d559d161926edf88c2baa08ee3bd1cfece71
7a09d55https://github.com/python/cpython/pull/146113/commits/7a09d559d161926edf88c2baa08ee3bd1cfece71
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23684285716
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23684290481
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-issue-4091798145
_set_str missing NULL check after PyUnicode_DecodeASCII in _csv.c #146093 https://github.com/python/cpython/issues/146093
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4083000763
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23686519357
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4083460325
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 18, 2026 https://github.com/python/cpython/pull/146113#pullrequestreview-3968777160
View reviewed changes https://github.com/python/cpython/pull/146113/files/7a09d559d161926edf88c2baa08ee3bd1cfece71
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/146113#pullrequestreview-3968777160
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/146113
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 core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23686660637
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
724c7c8https://github.com/python/cpython/commit/724c7c8146f44a7c737ec4588a1ee4b9db994f6f
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23690471075
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
March 18, 2026 17:20https://github.com/python/cpython/pull/146113#event-23690472575
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4084256516
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/146113
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
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23690473791
miss-islingtonhttps://github.com/miss-islington
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-commit-065bba4
https://github.com/vstinner
https://github.com/miss-islington
pythongh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII()…https://github.com/miss-islington/cpython/commit/065bba4962139a5fdfea549314bc1598eac1909b
065bba4https://github.com/miss-islington/cpython/commit/065bba4962139a5fdfea549314bc1598eac1909b
pythonGH-146113https://github.com/python/cpython/pull/146113
724c7c8https://github.com/miss-islington/cpython/commit/724c7c8146f44a7c737ec4588a1ee4b9db994f6f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4084258118
GH-146130https://github.com/python/cpython/pull/146130
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23690481602
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23690512375
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4084265665
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/146113
miss-islingtonhttps://github.com/miss-islington
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-commit-f693ea9
https://github.com/vstinner
https://github.com/miss-islington
pythongh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII()…https://github.com/miss-islington/cpython/commit/f693ea9d3d6f9352c7d5e8525d7aa7f319bc7359
f693ea9https://github.com/miss-islington/cpython/commit/f693ea9d3d6f9352c7d5e8525d7aa7f319bc7359
pythonGH-146113https://github.com/python/cpython/pull/146113
724c7c8https://github.com/miss-islington/cpython/commit/724c7c8146f44a7c737ec4588a1ee4b9db994f6f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4084267267
GH-146131https://github.com/python/cpython/pull/146131
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/146113
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Mar 18, 2026https://github.com/python/cpython/pull/146113#event-23690523110
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 18, 2026https://github.com/python/cpython/pull/146113#issuecomment-4084275855
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/146113
vstinnerhttps://github.com/vstinner
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-commit-c7d7e1c
https://github.com/miss-islington
https://github.com/vstinner
[3.13]https://github.com/python/cpython/commit/c7d7e1c1a023c0b98ffb8e383fa03934bc834d65
gh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII(…https://github.com/python/cpython/commit/c7d7e1c1a023c0b98ffb8e383fa03934bc834d65
c7d7e1chttps://github.com/python/cpython/commit/c7d7e1c1a023c0b98ffb8e383fa03934bc834d65
GH-146113https://github.com/python/cpython/pull/146113
#146131https://github.com/python/cpython/pull/146131
gh-146093https://github.com/python/cpython/issues/146093
GH-146113https://github.com/python/cpython/pull/146113
724c7c8https://github.com/python/cpython/commit/724c7c8146f44a7c737ec4588a1ee4b9db994f6f
vstinnerhttps://github.com/vstinner
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-commit-5feedc7
https://github.com/miss-islington
https://github.com/vstinner
[3.14]https://github.com/python/cpython/commit/5feedc759363dec4b9e2b0630bd57b8e4eba28f7
gh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII(…https://github.com/python/cpython/commit/5feedc759363dec4b9e2b0630bd57b8e4eba28f7
5feedc7https://github.com/python/cpython/commit/5feedc759363dec4b9e2b0630bd57b8e4eba28f7
GH-146113https://github.com/python/cpython/pull/146113
#146130https://github.com/python/cpython/pull/146130
gh-146093https://github.com/python/cpython/issues/146093
GH-146113https://github.com/python/cpython/pull/146113
724c7c8https://github.com/python/cpython/commit/724c7c8146f44a7c737ec4588a1ee4b9db994f6f
https://github.com/raminfp
raminfphttps://github.com/raminfp
Mar 18, 2026 https://github.com/python/cpython/pull/146113#ref-issue-4078277865
_csv: _set_str() missing NULL check after PyUnicode_DecodeASCII() #145978 https://github.com/python/cpython/issues/145978
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 4, 2026 https://github.com/python/cpython/pull/146113#ref-pullrequest-3716338400
gh-130273: Fix traceback color output with unicode characters #142529 https://github.com/python/cpython/pull/142529
ljfphttps://github.com/ljfp
Apr 25, 2026 https://github.com/python/cpython/pull/146113#ref-commit-2478928
https://github.com/vstinner
https://github.com/ljfp
pythongh-146093https://github.com/python/cpython/issues/146093
: Fix csv _set_str(): check if PyUnicode_DecodeASCII()…https://github.com/ljfp/cpython/commit/24789286598acc3e155c6889edefa8b5be2f31d9
2478928https://github.com/ljfp/cpython/commit/24789286598acc3e155c6889edefa8b5be2f31d9
python#146113https://github.com/python/cpython/pull/146113
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F146113
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/146113/files/7a09d559d161926edf88c2baa08ee3bd1cfece71
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/146113
https://github.com/vstinner
https://github.com/serhiy-storchaka
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.