René's URL Explorer Experiment


Title: gh-144125: email: verify headers are sound in BytesGenerator by sethmlarson · Pull Request #144126 · python/cpython · GitHub

Open Graph Title: gh-144125: email: verify headers are sound in BytesGenerator by sethmlarson · Pull Request #144126 · python/cpython

X Title: gh-144125: email: verify headers are sound in BytesGenerator by sethmlarson · Pull Request #144126 · python/cpython

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

Open Graph Description: GH-122233 added an implementation to Generator to refuse to serialize (write) headers that are unsafely folded or delimited. This revision adds the same implementation to BytesGenerator, so it gets...

X Description: GH-122233 added an implementation to Generator to refuse to serialize (write) headers that are unsafely folded or delimited. This revision adds the same implementation to BytesGenerator, so it gets...

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

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/_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:4b1e9d5c-0774-1427-e27d-91610269fc09
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9ABC:1A77D:FD10CB:152D0CD:6B005C4A
html-safe-nonce59c3a50d771f933f161f0d3cde163655ae14b1286fb660948bee54335e176249
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUJDOjFBNzdEOkZEMTBDQjoxNTJEMENEOjZCMDA1QzRBIiwidmlzaXRvcl9pZCI6IjcxMzMxMjUzOTY4NzQxNTcxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf18130d0f124923a7048fb225d9f58791edf82bafc1d03ac817efc550aa20a96
hovercard-subject-tagpull_request:3196493530
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/144126/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/023d64c4d68aaf623cc4fc7a201a3db29cdf2c9988718b2cbc58233003bcb4be/python/cpython/pull/144126
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/023d64c4d68aaf623cc4fc7a201a3db29cdf2c9988718b2cbc58233003bcb4be/python/cpython/pull/144126
og:image:altGH-122233 added an implementation to Generator to refuse to serialize (write) headers that are unsafely folded or delimited. This revision adds the same implementation to BytesGenerator, so it gets...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesethmlarson
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/144126#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F144126
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%2F144126
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/144126
Reloadhttps://github.com/python/cpython/pull/144126
Reloadhttps://github.com/python/cpython/pull/144126
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
sethmlarsonhttps://github.com/sethmlarson
python:mainhttps://github.com/python/cpython/tree/main
sethmlarson:email-verify-headers-in-bytesgeneratorhttps://github.com/sethmlarson/cpython/tree/email-verify-headers-in-bytesgenerator
Conversationhttps://github.com/python/cpython/pull/144126
Commits3 (3)https://github.com/python/cpython/pull/144126/commits
Checkshttps://github.com/python/cpython/pull/144126/checks
Files changedhttps://github.com/python/cpython/pull/144126/files
gh-144125: email: verify headers are sound in BytesGeneratorhttps://github.com/python/cpython/pull/144126#top
sethmlarsonhttps://github.com/sethmlarson
python:mainhttps://github.com/python/cpython/tree/main
sethmlarson:email-verify-headers-in-bytesgeneratorhttps://github.com/sethmlarson/cpython/tree/email-verify-headers-in-bytesgenerator
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
Jan 21, 2026https://github.com/python/cpython/pull/144126#issue-3839668177
Please reload this pagehttps://github.com/python/cpython/pull/144126
GH-122233https://github.com/python/cpython/pull/122233
Encode newlines in headers when using ByteGenerator #144125https://github.com/python/cpython/issues/144125
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
code ownerhttps://github.com/python/cpython/blob/cf71e34940e2314ee7ca00961d86a7172286eeea/.github/CODEOWNERS#L439
January 21, 2026 19:15https://github.com/python/cpython/pull/144126#event-22197084180
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
type-security https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-security
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
topic-email https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-email
Jan 21, 2026https://github.com/python/cpython/pull/144126#event-22197084508
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
Jan 21, 2026https://github.com/python/cpython/pull/144126#event-22197086968
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 21, 2026 https://github.com/python/cpython/pull/144126#ref-issue-3839525499
Encode newlines in headers when using ByteGenerator #144125 https://github.com/python/cpython/issues/144125
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
bitdancerhttps://github.com/bitdancer
January 21, 2026 19:16https://github.com/python/cpython/pull/144126#event-22197100156
https://github.com/beledouxdenis
https://github.com/encukou
https://github.com/basbloemsaat
https://github.com/sethmlarson
pythongh-144125https://github.com/python/cpython/issues/144125
: email: verify headers are sound in BytesGeneratorhttps://github.com/python/cpython/pull/144126/commits/1132e45e8b588cd89bd168583afa37ba7c9f0afa
1132e45https://github.com/python/cpython/pull/144126/commits/1132e45e8b588cd89bd168583afa37ba7c9f0afa
pythonGH-122233https://github.com/python/cpython/pull/122233
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
force-pushedhttps://github.com/python/cpython/compare/cd41a69b63732c8963ff28275c09d5099c7bf363..1132e45e8b588cd89bd168583afa37ba7c9f0afa
cd41a69https://github.com/python/cpython/commit/cd41a69b63732c8963ff28275c09d5099c7bf363
1132e45https://github.com/python/cpython/commit/1132e45e8b588cd89bd168583afa37ba7c9f0afa
Compare https://github.com/python/cpython/compare/cd41a69b63732c8963ff28275c09d5099c7bf363..1132e45e8b588cd89bd168583afa37ba7c9f0afa
January 21, 2026 19:17https://github.com/python/cpython/pull/144126#event-22197115763
https://github.com/sethmlarson
Fix ref in NEWShttps://github.com/python/cpython/pull/144126/commits/4a5845c2e4cdbba0bf7ee5491b73ca8450dc4eeb
4a5845chttps://github.com/python/cpython/pull/144126/commits/4a5845c2e4cdbba0bf7ee5491b73ca8450dc4eeb
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
Jan 21, 2026 https://github.com/python/cpython/pull/144126#pullrequestreview-3689418289
View reviewed changes https://github.com/python/cpython/pull/144126/files/4a5845c2e4cdbba0bf7ee5491b73ca8450dc4eeb
Lib/test/test_email/test_generator.pyhttps://github.com/python/cpython/pull/144126/files/4a5845c2e4cdbba0bf7ee5491b73ca8450dc4eeb#diff-3e803f38579321b7277ac415d5b293438114eeb1afc9aa2bb4db75adc56b1ffa
Please reload this pagehttps://github.com/python/cpython/pull/144126
Lib/test/test_email/test_policy.pyhttps://github.com/python/cpython/pull/144126/files/4a5845c2e4cdbba0bf7ee5491b73ca8450dc4eeb#diff-28c8506700752b35e5100aa83721a7d5968f7a1db805e57035acc76412fce712
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 21, 2026https://github.com/python/cpython/pull/144126#event-22199393604
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 21, 2026https://github.com/python/cpython/pull/144126#issuecomment-3781181657
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/sethmlarson
Convert test docstrings to commentshttps://github.com/python/cpython/pull/144126/commits/697163bd4dd5d2959e8f8cacd68901711a814801
697163bhttps://github.com/python/cpython/pull/144126/commits/697163bd4dd5d2959e8f8cacd68901711a814801
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
Jan 22, 2026https://github.com/python/cpython/pull/144126#issuecomment-3784964017
@bitdancerhttps://github.com/bitdancer
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Jan 22, 2026https://github.com/python/cpython/pull/144126#event-22218871924
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 22, 2026https://github.com/python/cpython/pull/144126#issuecomment-3784964520
@bitdancerhttps://github.com/bitdancer
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
bitdancerhttps://github.com/bitdancer
January 22, 2026 15:18https://github.com/python/cpython/pull/144126#event-22218873708
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
Jan 23, 2026 https://github.com/python/cpython/pull/144126#pullrequestreview-3697646310
View reviewed changes https://github.com/python/cpython/pull/144126/files/697163bd4dd5d2959e8f8cacd68901711a814801
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 change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22243569437
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
052e55ehttps://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22245143774
Please reload this pagehttps://github.com/python/cpython/pull/144126
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
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22245145143
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
January 23, 2026 14:59https://github.com/python/cpython/pull/144126#event-22245146055
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22245154497
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22245154596
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 23, 2026https://github.com/python/cpython/pull/144126#issuecomment-3790631736
@sethmlarsonhttps://github.com/sethmlarson
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 23, 2026https://github.com/python/cpython/pull/144126#issuecomment-3790631762
@sethmlarsonhttps://github.com/sethmlarson
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 23, 2026https://github.com/python/cpython/pull/144126#issuecomment-3790631890
@sethmlarsonhttps://github.com/sethmlarson
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jan 23, 2026https://github.com/python/cpython/pull/144126#event-22248356599
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 23, 2026https://github.com/python/cpython/pull/144126#issuecomment-3791312706
@sethmlarsonhttps://github.com/sethmlarson
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 23, 2026https://github.com/python/cpython/pull/144126#issuecomment-3791312708
@sethmlarsonhttps://github.com/sethmlarson
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/hugovk
hugovkhttps://github.com/hugovk
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Jan 26, 2026https://github.com/python/cpython/pull/144126#event-22294798516
CVE-2026-1299: debian package libpython3.13-stdlib-3.13.5-2 OpenHands/OpenHands-Cloud#348 https://github.com/OpenHands/OpenHands-Cloud/issues/348
CVE-2026-1299: debian package python3.13-minimal-3.13.5-2 OpenHands/OpenHands-Cloud#353 https://github.com/OpenHands/OpenHands-Cloud/issues/353
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%2F144126
https://github.com/bitdancer
bitdancer https://github.com/bitdancer
https://github.com/python/cpython/pull/144126/files/697163bd4dd5d2959e8f8cacd68901711a814801
Please reload this pagehttps://github.com/python/cpython/pull/144126
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
topic-email https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-email
type-security https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-security
Please reload this pagehttps://github.com/python/cpython/pull/144126
https://github.com/sethmlarson
https://github.com/bitdancer
https://github.com/hugovk
https://github.com/beledouxdenis
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.