René's URL Explorer Experiment


Title: Assertion failure in Modules/_io/bytesio.c `_io_BytesIO_readinto_impl: Assertion 'self->pos + len < PY_SSIZE_T_MAX' failed.` · Issue #141311 · python/cpython · GitHub

Open Graph Title: Assertion failure in Modules/_io/bytesio.c `_io_BytesIO_readinto_impl: Assertion 'self->pos + len < PY_SSIZE_T_MAX' failed.` · Issue #141311 · python/cpython

X Title: Assertion failure in Modules/_io/bytesio.c `_io_BytesIO_readinto_impl: Assertion 'self->pos + len < PY_SSIZE_T_MAX' failed.` · Issue #141311 · python/cpython

Description: Bug report Bug description: import io input_lines = ['windows\r\n'] joined = ''.join(input_lines) encoding = 'utf-8' newline = None bufsize = 1 raw = io.BytesIO(joined.encode(encoding)) buf = io.BufferedReader(raw, buffer_size=bufsize) t...

Open Graph Description: Bug report Bug description: import io input_lines = ['windows\r\n'] joined = ''.join(input_lines) encoding = 'utf-8' newline = None bufsize = 1 raw = io.BytesIO(joined.encode(encoding)) buf = io.Bu...

X Description: Bug report Bug description: import io input_lines = ['windows\r\n'] joined = ''.join(input_lines) encoding = 'utf-8' newline = None bufsize = 1 raw = io.BytesIO(joined.encod...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assertion failure in Modules/_io/bytesio.c `_io_BytesIO_readinto_impl: Assertion 'self->pos + len \u003c PY_SSIZE_T_MAX' failed.`","articleBody":"# Bug report\n\n### Bug description:\n\n```python\nimport io\n\ninput_lines = ['windows\\r\\n']\njoined = ''.join(input_lines)\n\nencoding = 'utf-8'\nnewline = None\nbufsize = 1\n\nraw = io.BytesIO(joined.encode(encoding))\nbuf = io.BufferedReader(raw, buffer_size=bufsize)\ntextio = io.TextIOWrapper(buf, encoding=encoding, newline=newline)\n\ntextio.seek(2**63 - 1)\n_ = textio.read(2)\n```\n\n```\npython: ../Modules/_io/bytesio.c:616: _io_BytesIO_readinto_impl: Assertion `self->pos + len \u003c PY_SSIZE_T_MAX' failed.\nAborted (core dumped)\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-141333\n* gh-141457\n* gh-141478\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/YuanchengJiang","@type":"Person","name":"YuanchengJiang"},"datePublished":"2025-11-09T18:08:44Z","url":"https://github.com/python/cpython/issues/141311"}

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:bc40b64f-9b4a-35cd-222c-da21d8e5c4ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA22E:2A98A:FA96E2:13B2840:6B024F1F
html-safe-nonce6eeb7fcc8271e4f2b75fd27ac0f6c8878a50f7537fc7b4c0b62dfcbb16c7ba85
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjJFOjJBOThBOkZBOTZFMjoxM0IyODQwOjZCMDI0RjFGIiwidmlzaXRvcl9pZCI6IjQ5MzUwOTc0NDQxNTg1NTc5ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b5fc9ce7db2aabcdda4eb48f28a64336061a5e980d8ba1a7f439dc791d98daf
hovercard-subject-tagissue:3605299711
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/141311/issue_layout
twitter:imagehttps://opengraph.githubassets.com/97aec4cdd0768a7068fcbd74d95b16c91eff8aeadd4c4dbb2603ebbbd934763c/python/cpython/issues/141311
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/97aec4cdd0768a7068fcbd74d95b16c91eff8aeadd4c4dbb2603ebbbd934763c/python/cpython/issues/141311
og:image:altBug report Bug description: import io input_lines = ['windows\r\n'] joined = ''.join(input_lines) encoding = 'utf-8' newline = None bufsize = 1 raw = io.BytesIO(joined.encode(encoding)) buf = io.Bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYuanchengJiang
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/141311#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F141311
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%2F141311
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/141311
Reloadhttps://github.com/python/cpython/issues/141311
Reloadhttps://github.com/python/cpython/issues/141311
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/141311
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/141311
Assertion failure in Modules/_io/bytesio.c _io_BytesIO_readinto_impl: Assertion 'self->pos + len < PY_SSIZE_T_MAX' failed.https://github.com/python/cpython/issues/141311#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/YuanchengJiang
YuanchengJianghttps://github.com/YuanchengJiang
on Nov 9, 2025https://github.com/python/cpython/issues/141311#issue-3605299711
gh-141311: Avoid assertion in BytesIO readinto #141333https://github.com/python/cpython/pull/141333
[3.14] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) #141457https://github.com/python/cpython/pull/141457
[3.13] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) #141478https://github.com/python/cpython/pull/141478
YuanchengJianghttps://github.com/YuanchengJiang
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Nov 9, 2025https://github.com/python/cpython/issues/141311#event-20820736229
picnixzhttps://github.com/picnixz
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Nov 9, 2025https://github.com/python/cpython/issues/141311#event-20820760112
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
on Nov 9, 2025https://github.com/python/cpython/issues/141311#issuecomment-3508658077
cpython/Modules/_io/bytesio.chttps://github.com/python/cpython/blob/807db68ddd8572cfa825373bc13461b02691f4d9/Modules/_io/bytesio.c#L616-L617
807db68https://github.com/python/cpython/commit/807db68ddd8572cfa825373bc13461b02691f4d9
cmaloneyhttps://github.com/cmaloney
on Nov 10, 2025https://github.com/python/cpython/issues/141311#event-20823903431
pythongh-141311: Avoid assertion in BytesIO readintohttps://github.com/cmaloney/cpython/commit/db81df6b738beaa1f4fb281fa1253ba56c048354
pythongh-141311https://github.com/python/cpython/issues/141311
db81df6https://github.com/cmaloney/cpython/commit/db81df6b738beaa1f4fb281fa1253ba56c048354
serhiy-storchakahttps://github.com/serhiy-storchaka
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20884179628
gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333)https://github.com/python/cpython/commit/7d54374f9c7d91e0ef90c4ad84baf10073cf1d8a
gh-141311https://github.com/python/cpython/issues/141311
GH-141333https://github.com/python/cpython/pull/141333
7d54374https://github.com/python/cpython/commit/7d54374f9c7d91e0ef90c4ad84baf10073cf1d8a
miss-islingtonhttps://github.com/miss-islington
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20884196940
pythongh-141311: Avoid assertion in BytesIO.readinto() (pythonGH-141333)https://github.com/miss-islington/cpython/commit/7151cfb3b7bde72608a300d10512a7e32340ca1d
pythongh-141311https://github.com/python/cpython/issues/141311
pythonGH-141333https://github.com/python/cpython/pull/141333
7151cfbhttps://github.com/miss-islington/cpython/commit/7151cfb3b7bde72608a300d10512a7e32340ca1d
serhiy-storchakahttps://github.com/serhiy-storchaka
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20884778247
[3.14] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) (G…https://github.com/python/cpython/commit/75b5157e846a7d65eace108b9d234dfd6115735f
gh-141311https://github.com/python/cpython/issues/141311
GH-141333https://github.com/python/cpython/pull/141333
G…https://github.com/python/cpython/pull/141457
75b5157https://github.com/python/cpython/commit/75b5157e846a7d65eace108b9d234dfd6115735f
StanFromIrelandhttps://github.com/StanFromIreland
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20897637196
serhiy-storchakahttps://github.com/serhiy-storchaka
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20899246481
[3.13] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) (G…https://github.com/python/cpython/commit/7c62bd571bfc40237bc8120bdba80c92e35944d5
gh-141311https://github.com/python/cpython/issues/141311
GH-141333https://github.com/python/cpython/pull/141333
G…https://github.com/python/cpython/pull/141478
7c62bd5https://github.com/python/cpython/commit/7c62bd571bfc40237bc8120bdba80c92e35944d5
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 12, 2025https://github.com/python/cpython/issues/141311#event-20899248676
StanFromIrelandhttps://github.com/StanFromIreland
on Dec 6, 2025https://github.com/python/cpython/issues/141311#event-21401823013
pythongh-141311: Avoid assertion in BytesIO.readinto() (pythonGH-141333)https://github.com/StanFromIreland/cpython/commit/7592d29d34672fe5320ae9969c73e248d6cb8b69
pythongh-141311https://github.com/python/cpython/issues/141311
pythonGH-141333https://github.com/python/cpython/pull/141333
7592d29https://github.com/StanFromIreland/cpython/commit/7592d29d34672fe5320ae9969c73e248d6cb8b69
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/141311
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/141311
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%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.